On Mon, Nov 7, 2011 at 5:01 PM, mayank27 <[email protected]> wrote: > Claus, > > Thanks for the reply. Im curious to know why did u say that "Not using osgi > config admin"? Did u mean it cannot be done or is that something you dont > recommend. > > My aim is to update camel routes at runtime from an xml file using OSGI > config admin. >
I was actually thinking to update the routes in an existing CamelContext at runtime, without having to restart the bundle / the entire CamelContext. This is only possible using the API on CamelContext, where you can shutdown routes, remove routes, add new routes etc. I guess using config admin as Christian showed, you can "watch" some config changes, and have it trigger a reload of the entire bundle. That can indirectly be used as to update Camel routes on the fly. You can of course also just hot deploy the bundle to have updated as well. > Thanks > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Update-camel-route-at-runtime-using-config-admin-tp4965455p4971531.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
