Hi, What kind of transport are you using between route A and the other routes? I assume you're using an async transport (like JMS etc) otherwise you wouldn't have this problem since al routes would be executed sequentially (when using direct for example). Can you post your code?
One solution would be to use *onCompletion* ( http://camel.apache.org/oncompletion.html). This would allow each route to do a callback to a single endpoint which would be responsible for keeping track of which routes finished or not. Kind regards, Richard Kettelerij http://richardlog.com On Wed, Mar 12, 2014 at 4:50 PM, iceman <[email protected]> wrote: > Hi, > > I'm looking for the best practice to detect the end of parallel routes. > > Here's the process : > > <http://camel.465427.n5.nabble.com/file/n5748704/EndRoutesQuestion.jpg> > > The Route A post new messages in the other routes. > I must detect the end of all routes to know that my process is ended. > > How can I do that ? > > Thx for your help :) > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Detected-end-of-multiple-routes-tp5748704.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
