camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Camel gracefull shutdown with exec:
Date Fri, 23 May 2014 09:19:01 GMT
You can use a higher graceful timeout if you must wait for the exec to
complete and process its message.
http://camel.apache.org/graceful-shutdown.html

Though the default timeout is 300 seconds, so your exec must take a long time.
Mind that from unit tests the timeout is set to 10 sec instead.


On Fri, May 23, 2014 at 11:09 AM, Jey350 <jey350@hotmail.com> wrote:
> Hello,
>
> I have an issue with a gracefull shutdown of a route containing an exec
> command, because the route is stopped after the exe command and what follows
> is not processed.
>
> With a sample it will be esasier to undersand:
>
> <route>
>   <process ref="process1"/>
>   <to uri="exec:mycommand/>
>   <process ref="process2"/>
> </route>
>
> If the shutdown command is launched while process1, the exec will run but
> not process2.
>
> I can precise the timeout is not reached, with a to:direct trick it's the
> same, and I'm using Camel 2.10.
>
> Any idea to let the route finish while shutdown ?
>
> Thanks.
>
>
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-gracefull-shutdown-with-exec-tp5751510.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message