|[cm] ManagedServiceFactory.update(...) called multiple times with same configuration [message #755080]
||Mon, 07 November 2011 10:08
| Carsten Saathoff
Registered: November 2011
We are using ConfigurationAdmin and ManagedServiceFactories to provide several instances of a service with different configurations. When starting our product, several config files are read and (factory)configs are published using ConfigurationAdmin. This works locally on my Mac Book Pro perfectly. However, when deploying the same product on our server (running Debian stable), I encountered the problem that our ManagedServiceFactories are called multiple times with the same configuration. I checked our startup code, and each configuration is published only once, nevertheless the facotry is called multiple times.|
One observation I made is that the generated PID for the service configuration looks strange. Usually the pids are generated by concatenating <factoryPid>-<timestamp>-<counter>, where the counter is monotonically increasing. On our server, however, the redundant configurations all have the same value for the counter, only the timestamp increases.
I had a look at the equinox.cm bundles, and I was not able to spot an obvious problem, neither I am sure that this is a bug or whether I misunderstood anything about ConfigurationAdmin and ManagedServiceFactories. Therefore I wanted to know wheter this behaviour is expected and I have to handle it in my code (which would be possible) or whether this is indeed unwanted behaviour and a bug should be filed?
Thanks for any insights
[Updated on: Mon, 07 November 2011 11:22]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01786 seconds