Hello,
I would like to understand how to use the subsystem in combination with
extenders but I couldn't find any details on how to do it in the right way.
Specifically, I have bundle in the root subsystem:
org.apache.camel.camel-core which uses a bundle tracker (on its own bundle
context) to extend camel component bundles (e.g. camel-ftp). I would like
to separate the camel components along with their dependencies into
isolated composite subsystems.
When now starting a camel component subsystem the extender does not get
notified with an event since they do not share the same scope. How can I
make sure that the camel-core extender should be notified with such events?
Is it enough to specify i.e. provide/require osgi.extender capabilities and
also specify them on the subsystem level? May another possible solution is
that the camel-core extender uses a bundle tracker on the system bundle,
since this should be notified with the events in all subsystems. Is this
correct? If yes, is this also the preferred way to do it?
I have seen that in the blueprint extender there is a property
("org.apache.aries.blueprint.use.system.context") also to specify that the
bundle tracker is using the system context. Was this property added for the
same reason?
I would appreciate any help, hints or pointers to detailed information on
this issue (i.e. osgi spec section)?
Kind Regards,
Manuel