Results 1 to 2 of 2

Thread: service bundle restart

  1. #1
    Join Date
    Oct 2008
    Posts
    0

    Default 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. #2
    Join Date
    Oct 2008
    Posts
    0

    Default service bundle restart

    Hello,
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •