|modifiedservice not invoked upon "update <bundle>" [message #505826]
||Tue, 05 January 2010 09:50
Registered: January 2010
relatively new to OSGi and I am testing equinox dynamic service update, hoping that the service invokation is not affected and service is updated with no loss.
I implemented 3 simple Service (ServiceA, ServiceB, and ServiceC). I have 4 bundles:
IService bundle providin service interface definition.
ServiceA implementing service IService
ServiceB implementing service IService
ServiceC consuming ServiceA and ServiceB.
ServiceC implements the ServiceTrackerCustomizer and a ServiceTracker (for IService) is defined in the ServiceC Bundle Activator class.
Upon startin bundle ServiceA and Service B the callback addingservice is correctly invoked but I noticed that if I modified ServiceB implementation and then performed a osgi> update <bundle ServiceB> only the methods removeService and addingService are invoked (in sequence) but not modified service. I perform service clean up in RemoveService and so this is not desirable as the operations will be affected. Is there any reason why modifiedservice is not invoked ? Should I use a different pattern to implement service update without affecting operations ?
Powered by FUDForum
. Page generated in 0.02175 seconds