You could use the control bus to stop the route ( http://camel.apache.org/controlbus.html <http://camel.apache.org/controlbus.html> )
> On Jun 2, 2016, at 5:06 AM, Daniel Pompa <pompadan...@gmail.com> wrote: > > If you see, I have a do-while monitoring the value of the var > CamelBatchComplete, then when is true, stop and remove the route from Camel > Context. I don't like this. > > My question is, there a better way to stop and remove the route when the > Batch finish? Using the RouteBuilder for example. > > Thanks. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-stop-a-dynamic-route-tp5783385p5783389.html > Sent from the Camel - Users mailing list archive at Nabble.com.