|
Re: OSGi 'update' command with services [message #1075711 is a reply to message #1075194] |
Mon, 29 July 2013 19:23  |
Eclipse User |
|
|
|
Hi All,
I managed to get a really good explanation from Peter Kriens on StackOverflow(I'm not allowed to post a link, so look at the end of the post for the URL); this guy really know a lot about OSGi!
To summarize:
When you update a bundle, all the wiring (e.g. dynamic services) that you had between your old upgraded bundle and other bundles are left. This means that all these links go stale; the service management doesn't automatically join your old bundles to the newly updated one.
To make everyone happy again you can use the refresh command in the OSGi console, or if you want to do it from code you can use the FrameworkWiring.refreshBundles() method.
If anyone wants more information let me know and I can post a more detailed message with code snippets.
I hope this has cleared up any problems other people may have when using the update functionality in OSGi.
Have a great day!
* URL to StackOverflow detailed response from Peter Kriens :
http://
stackoverflow.com/questions/17917633/osgi-update-command-dynamic-services-wont-restart
|
|
|
Powered by
FUDForum. Page generated in 0.08569 seconds