Hi

You can also mark the 2nd route to not auto start.
And then from 1st route you can start the 2nd route.

For example just using the controlbus in the route
http://camel.apache.org/controlbus.html

.to("controlbus:route?routeId=idOfRoute2&action=start")

Or do like this FAQ
http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html

On Tue, Jul 23, 2013 at 9:21 AM, Bovas <bovas.t...@gmail.com> wrote:
> thanks for your answer bibryam.
>
> I find a solution, but i think it's not the best solution.
> In my bean, I created a boolean and when the first route finish, I start the
> second.
>
> I did a while loop in my second route before his treatment =>
> *while(!isRead);*
> isRead become true when my first route finish.
>
>
>
>
> -----
> regards,
> Bovas
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Probleme-with-startorder-tp5736034p5736066.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



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

Reply via email to