Hi,

Heiko Waldschmidt schrieb:
> New Day, new Ideas about my Problem. The framework starts more than one
> instance of my component ... this is the real cause - so synchronization
> couldn't work.
> 
> What's the state of the art way to get a singleton component? 

Hmm, the SCR does not by itself create multiple instances of the same
component -- unless the component is created due to factory
configuration instances being created and configured. [ or the component
is a component factory and some code calls
ComponentFactory.newInstance(), but this is probably not the case here ].

The only other explanation I have is, that your bundle is installed
multiple times, which is perfectly possible. To prevent this set the
singleton parameter on the Bundle-SymbolicName header:

   Bundle-SymbolicName: the.name;singleton=true

Regards
Felix
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to