You can set if the route is started[1] when the camel context is started.
Then you can start the route as you want in when the other route is ready.

[1]http://camel.apache.org/configuring-route-startup-ordering-and-autostartup.html
 

-- 
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang 
Weibo: willemjiang





On Friday, September 21, 2012 at 1:05 AM, Edwin wrote:

> Hi Folks,
> 
> In my application, I have a number of routes that start-up in a specified
> order. 
> 
> The route that starts first has the responsibility of draining a particular
> JMS queue of any messages that may exist on the queue. 
> While this route needs to start before the other routes start, this route
> also needs to finish processing any messages before the other routes start.
> 
> I'm wondering does Camel support a way of delaying the start-up of
> particular routes depending on the status of another route?
> 
> Any insights into this are much appreciated.
> 
> Thanks,
> Edwin
> 
> 
> 
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Starting-route-s-upon-completion-of-another-route-tp5719681.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to