[jboss-dev-forums] [JBoss OSGi Development] - Re: Unexpected dependee state changes

thomas.diesler@jboss.com do-not-reply at jboss.com
Wed Dec 2 05:41:27 EST 2009


I think the difference is between implicit and explicit re-wiring of the bundle graph. The OSGi spec chooses the explicit approach where you have to explicitly use PackageAdmin or restart the framework to cause a rewiring.

An implicit approach would mean that on every bundle update/uninstall the framework would bounce every bundle that depends on the uninstalled bundle causing a potential change in behaviour (because they wire to something else)

Anyway, this is how the spec defines the classloading sematics of uninstalled bundles. 

Stale services can be avoided by using ServiceTracker i.e. you should never hold on to a service that is not being  tracked.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268466#4268466

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268466



More information about the jboss-dev-forums mailing list