On Fri, Jan 14, 2011 at 4:58 PM, niconic <[email protected]> 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: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
