Hello.
I've been trying to provide a org.apache.camel.spi.EventNotifier as a
shared OSGi service.
When I instantiates a similar object as a bean in a bundle blueprint, the
Camel context registers it and all events are received as expected.
If I try to expose the same kind of object as a service from another
bundle, It seems that it is automatically added to all my Camel contexts in
any bundle, masking all others EventNotifier created as simple beans, ans
without using a service reference.
I expose it like that :
<bean
id="my.pure.service.bean"
class="my.tests.t13.spy.service.SpyPureService" />
<service
id="my.spy.pure.service"
interface="org.apache.camel.spi.EventNotifier"
ref="my.pure.service.bean" />
Is it a normal behavior ?
Why does the service appear all the bundles without setting a reference ?
Thanks for your help.
Regards.