Agree with Christoph. I would also recommend to take a look on subsystem and 
region.

Regards
JB

Le 23 mai 2018 à 12:07, à 12:07, "'Christoph Läubrich' via OPS4J" 
<ops4j@googlegroups.com> a écrit:
>I would consider using the systembundles bundle context is bad style!
>This would break instantly the whole code in a secured OSGi env or
>would 
>require to give the extender huge access rights.
>
>Besdie this, it make IMO the subsystem aproach useless, it was meant to
>
>seperate things, if you now add meant to break this seperation, why 
>using subsystems at all then?
>
>Am 23.05.2018 um 11:53 schrieb Jaseem:
>> Hello,
>> 
>> Currently pax web extenders are not subsystem-aware. The extenders
>use 
>> BundleTracker/ServiceTracker on their own BundleContext. Events in 
>> scoped subsystems are not visible to these BundleContexts, hence Web 
>> bundles inside such subsystems don't get registered.
>> 
>> We can solve this by tracking on the system bundle context similar to
>this:
>> 
>> |
>> systemBundleContext =context.getBundle(0).getBundleContext();
>> systemBundleContext.addBundleListener(this);
>> this.tracker =newBundleTracker<>(systemBundleContext,Bundle.ACTIVE
>> |Bundle.STARTING,this);
>> |
>> 
>> This is similar to
>https://bugs.eclipse.org/bugs/show_bug.cgi?id=514636
>> and https://issues.apache.org/jira/browse/CAMEL-8647 .
>> 
>> I am currently on the activity of making WAR extender subsystem aware
>
>> and I'm getting this exception when the WAR bundle is
>started/restarted:
>
>-- 
>-- 
>------------------
>OPS4J - http://www.ops4j.org - ops4j@googlegroups.com
>
>--- 
>You received this message because you are subscribed to the Google
>Groups "OPS4J" group.
>To unsubscribe from this group and stop receiving emails from it, send
>an email to ops4j+unsubscr...@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - ops4j@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ops4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to