On Mon, Jan 17, 2011 at 10:00 AM, niconic <[email protected]> wrote:
>
> Hi Claus,
>
> Thank you for the response.
> Could you explain me why?
> I don't understand : i use seda and i've two routes "definition", why these
> routes are anyway linked?
>

onCompletion adds itself as a callback to the Exchange so when the
exchange is done the callbacks is being executed.
So even if onCompletion was defined in a route it will add itself as a
callback to the Exchange.
So when the Exchange is transfered from route A -> route B the
callbacks is transferred as well.

We should probably adjust this so route scoped onCompletion is only
triggered if the Exchange is done at that particular route.


> thx,
>
> Nicolas
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/error-handling-and-transaction-question-tp3341490p3344083.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to