On Tue, Mar 6, 2012 at 9:07 AM, Michael Szalay <michael.sza...@basis06.ch> wrote: > Hi all > > can I remove a route from the context dynamically when its finished? > I have a set of dynamic generated routes which I want to cleanup after they > are run through > (each route runs only once). >
Yes see this FAQ http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html You need to stop a route first, before you can remove it. There is API on CamelContext to both stop and remove routes. > Regards Michael > > -- > Michael Szalay > Senior Software Engineer > > basis06 AG, Birkenweg 61, CH-3013 Bern - Fon +41 31 311 32 22 > http://www.basis06.ch - source of smart business > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/