[jboss-dev-forums] [Design of OSGi Integration] - Re: Runtime and bundle lifecycle/dependency resolution
thomas.diesler@jboss.com
do-not-reply at jboss.com
Mon Mar 2 07:57:07 EST 2009
The fundamental problem is that a BundleContext.installBundle() does not attempt to resolve the just installed bundle. The information of whether a bundle can be resolved is therefore not available when BundleContext.installBundle() returns.
Triggering the resolve process varies from framework to framework and in the simplest case will probably boil down to
|
| boolean startResolve()
| {
| try
| {
| bundle.start()
| return true;
| }
| catch (BundleException ex)
| {
| return false;
| }
|
The above is no good however because it unintentionally starts the bundle.
I'll have a look at Felix hot deployment - they must have the same problem.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214153#4214153
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214153
More information about the jboss-dev-forums
mailing list