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 <[email protected]> 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: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
