[jboss-osgi-dev] DOSGi import issue

Thomas Diesler thomas.diesler at jboss.com
Sun Oct 7 22:54:50 EDT 2012


Optional imports are supposed to work. In the context of AS7 we don't 
seem to test this however.
https://issues.jboss.org/browse/AS7-5697

cheers
--thomas

On 10/05/2012 01:04 AM, David Bosschaert wrote:
> 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
> _______________________________________________
> jboss-osgi-dev mailing list
> jboss-osgi-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-osgi-dev

-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx



More information about the jboss-osgi-dev mailing list