[jboss-osgi-dev] DOSGi import issue

David Bosschaert david at redhat.com
Thu Oct 4 19:04:02 EDT 2012


Hi all,

I was looking again at getting CXF-DOSGi working on AS7.2 master and 
came across the following issue.
There are a fairly large number of bundles.
One bundle (spring-context) has an optional import on another bundle 
(optionally imports package org.springframework.aop.support). However in 
this use-case the import isn't actually optional in that the total 
system doesn't work without this optional import.

Now when it goes through resolution (in AS7/OSGi) of spring-context the 
bundle exporting org.springframwork.aop.support is actually already 
installed (and started). Still when debugging through the linking 
process of spring-context, the optional import isn't provided (it's not 
in the the list of dependencies provided to Module.link()).

So I'm wondering about this. On the one hand, since the import is 
optional it seems like what it does is allowable. On the other hand 
you'd expect that it attempts to at least import all optional imports 
that are available at resolution time.

Any thoughts?

Cheers,

David


More information about the jboss-osgi-dev mailing list