You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by kishoreJ <ki...@gmail.com> on 2015/08/17 16:21:09 UTC

New to camel need some help

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.

Re: New to camel need some help

Posted by Claus Ibsen <cl...@gmail.com>.
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 <ki...@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