Quantcast

Best way to restart osgi bundles in servicemix

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Best way to restart osgi bundles in servicemix

sanre6
Hi ,
      i have a requirement where i need to restart some of my osgi bundles  at particular periods of the day . what is the best way to do this ? Doing stop/start bundle through ssh needs bundle id and i dont want to be dependent on the ever changing bundle id's to restart them . Can we do this by accessing some global bundlecontext via one of the bundles or is there any other better way to do this ?


Thanks
sanre6  
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Best way to restart osgi bundles in servicemix

Jean-Baptiste Onofré
Hi,

you can create a bundle getting the bundle context and looking for the target bundles with a timer.

Regards
JB


On Tue 03/04/12 06:47 , sanre6  wrote::

Hi ,
      i have a requirement where i need to restart some of my osgi bundles
at particular periods of the day . what is the best way to do this ? Doing
stop/start bundle through ssh needs bundle id and i dont want to be
dependent on the ever changing bundle id's to restart them . Can we do this
by accessing some global bundlecontext via one of the bundles or is there
any other better way to do this ?


Thanks
sanre6  

--
View this message in context: http://servicemix.396122.n5.nabble.com/Best-way-to-restart-osgi-bundles-in-servicemix-tp5614251p5614251.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Best way to restart osgi bundles in servicemix

sanre6
ok , lets say i have a bundle which gets the bundleContext and all the bundles in the environment . and i update the bundles i want . Is this the right way to do ? what happens to the bundles which are dependent on the bundle for :

1. service dependencies

2. package dependencies

and what happens to camelcontext of a bundle and any singleton classes defined in it .
Loading...