Announcement Announcement Module
No announcement yet.
service bundle restart Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • service bundle restart

    Hi, I'm testing s2ap and osgi for web development.
    I've got two bundles, one for DAO (which exports service) and for web
    (which uses the service).

    But one problem is that after DAO bundle is restarted, web can not
    access the service which that bundle exports with
    IllegalStateException : Bundle 'DAO' has been uninstalled.

    after restart web bundle either, then web bundle can access the
    service again.
    but this is not what I want. I want for web bundle to reconnect to the
    DAO bundle's service without refreshing it.

    How can I work around this problem?

    Thanks in advance.

  • #2
    service bundle restart

    How are you connecting the two bundles ? using Import-Package and a instantiating a concrete implementation of DAO ?

    Anyway, you should do this using the OSGi Services: export your DAOs from the dAO bundle using spring DM, and import them in the web bundle (again, using Spring DM) and you should get the dynamic behaviour you seek