We are using Declarative Services.

 

When we start up Felix it activates our bundle but then the bundle
immediately deactivates and activates again. It appears that the
ConfigAdmin service has detected a change in the configuration causing
the bundle to reactivate.  It also appears that ConfigAdmin might be
creating a default configuration for each bundle consisting of the
service.pid and some other stuff. In simple test cases the behavior is
inconsistent.  Maybe there is a race condition where activate() is
called before the configuration update.

 

We get the following debug message:

"Deactivating and Activating to reconfigure from configuration"

 

Should the bundle reactivate when no configuration is supplied and a
default configuration is created?

 

Thanks

 

 

Reply via email to