Thanks, writing my own route policy worked perfect for me.

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

----- Ursprüngliche Mail -----
Von: "Claus Ibsen" <[email protected]>
An: [email protected]
Gesendet: Dienstag, 6. März 2012 09:09:47
Betreff: Re: Removing route automatically

On Tue, Mar 6, 2012 at 9:07 AM, Michael Szalay
<[email protected]> 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: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to