|Doubts regarding ManagedServiceFactory [message #1004619]
||Wed, 23 January 2013 14:54
| Castor Rodriguez
Registered: August 2011
I'm trying to figure it out why my ManagedServiceFactory is not been notified of configuration changes.
To put in context:
- Configuration changes are done by installing properties files as configuration artifacts (actually by copying them to the pickup directory).
- Those files have a property service.factoryPid with the same value as the service.pid with which the ManagedServiceFactory was registered.
It seems like there were two different instances of ConfigurationStore involved, created by different ConfigurationAdminFactory, and so on...
The reason would be the bundle org.eclipse.equinox.cm being started twice during kernel initialization, or at least the org.eclipse.equinox.internal.cm.Activator.start() being called twice.
So for some reason, when I add/update some properties file, ConfigurationStore is accessed twice, but each access to a different instance:
- First to createFactoryConfiguration (with factoryPid).
- Second to getConfiguration, but it can't get the configuration previously stored because it's a differente instance of the store. And at this point there is no knowledge about factoryPid, so the configuration is created again like if there wasn't any factory involved.
Is there any explanation for that? Maybe the kernel/user region disgregation?
Am I missing something?
Does all of this something to do with https://bugs.eclipse.org/bugs/show_bug.cgi?id=325735?
Virgo version: 3.6.0.RELEASE.
[Updated on: Wed, 23 January 2013 15:33]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01921 seconds