camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: error handling and transaction question
Date Fri, 14 Jan 2011 16:19:04 GMT
On Fri, Jan 14, 2011 at 4:58 PM, niconic <nicolas.nicaise@gmail.com> wrote:
>
> Hi,
>
> When i use onecompletion on a route like this:
>
> from(getRouteFrom())
>   .onCompletion().onFailureOnly()
>   ...
>   .end()
>   .transacted("required")
>   ...
>   .to("seda:forcenewtransaction");
>
> from("seda:forcenewtransaction")
>  .onCompletion().onFailureOnly()
>   ...
>  .end()
>    .transacted("requiredNew")
>     ...
>    .to("jpa://be.smals.eflux.domain.MessageBody");
>
>
>
> and if i've an exception in the second route camel seems to call the two
> oncompletion.
>
> is it the expected behavior?
>

Yes

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



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

Mime
View raw message