Hi All,

I noticed something strange using declarative services. It seems that
when stopping and starting a bundle that has a component which is also
registered as a service, this service is registered twice from time to
time.

The problem seems to be that the method 'enableInternal()' in
org.apache.felix.scr.impl.AbstractComponentManager is called twice in
two separate threads (method 'enable()' spawns a new thread on every
call). After adding a 'synchronized' modifier to method
'enableInternal()', I was unable to reproduce the problem again. There
may however be a more appropriate solution...

Regards,

Paul Neyens

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to