Virgo OSGI lifecycle with dependencies [message #673755] |
Tue, 24 May 2011 16:29 |
rshelley Messages: 59 Registered: April 2010 |
Member |
|
|
I've been working with the Virgo OSGI container for about two weeks now, and I think I've got a pretty good handle on it. My apps are working properly and things are starting to gel. However, there's one thing that keeps bugging me.
Virgo deletes my bundles on startup if their dependencies cannot be resolved.
My app is made up of several bundles, some of which depend upon others. Let's say BundleA depends on BundleB which depends on BundleC. If I upload BundleC then B then A, everything is happy and it all works great. However, when I restart the server, there's no guarantee that the bundles will be loaded C-B-A (except by using a Plan). Which I get. However, when Virgo starts, if those dependencies aren't available, the bundles are completely removed (with errors in the logs about missing dependencies).
It's my understanding, as per Wikipedia's OSGI page, that the state of the bundle initially is "Installed" then "Resolved" (if the dependencies are available) and so on. So I'm curious why, in my case, BundleA and BundleB are removed from Virgo and not just "Installed" so that I can manually start them in the correct order.
|
|
|
|
Powered by
FUDForum. Page generated in 0.01991 seconds