Hi Ronny, it's one of the reason why factoryPid is an excluded property.
The reason is that a different pid is created each time, so Cellar sync it. When another node receives it, it creates a new one (different from the other as it's factory), so it sync it, etc, etc.
As I already said to you, factoryPid is "local" to a node and should not be sync. That's why you should leave the factoryPid property in the excluded properties.
Regards JB On 01/22/2015 06:27 PM, Ronny Bräunlich wrote:
Hi everyone, I am using Apache Karaf 3.0.2 and Cellar 3.0.1-SNAPSHOT (built from commit 7a598b285f7b302efa15d9887dfea9d855b9951a) and I think I found a bug. I have two Karaf instances running. On both I installed Cellar and this simple project https://github.com/rbraeunlich/karaf-managed-service-factory-example After setting config.listener = true on both and removing service.factoryPid from the config.excluded.properties I dropped a config file into the etc/ directory. Then I could see the factory on the first Karaf instance getting called with the properties roughly every 100ms. Debugging the Karaf couldn’t show me the source of the problem. I suggest the Karaf updates itself and therefore calls the update() method all the time. The second instance didn’t make a move all the time. Does anyone have a clue? Cheers, Ronny
-- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
