Hi

Take a look at
http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html
http://camel.apache.org/graceful-shutdown.html



On Mon, Aug 17, 2015 at 4:21 PM, kishoreJ <kishore00...@gmail.com> wrote:
> hello all i am new to camel
>
> I am wondering how can we stop certain routes instead of completely stopping
> the whole camel context and also is there any other alternative for
> Thread.sleep(); method for processing. I would like to run a route once and
> stop the route when the route is completed. Currently I do the usual
> Thread.sleep(3000) in the main Java class to leave some time for the route
> to finish.I saw some documentation saying camel route supports graceful
> shutdown but if i don't use Thread.sleep() route shut downs immediately
> without processing.TIA
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/New-to-camel-need-some-help-tp5770777.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition: http://www.manning.com/ibsen2

Reply via email to