camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lolo <Laurent.Gaert...@lchclearnet.com>
Subject Re: Two routes, two transactions
Date Wed, 03 Oct 2012 15:05:44 GMT
Those two routes cannot be asynchronous, because I want route 2 to be called
only when route 1 is finished.

Route 2 is defined as:
from("direct:startTransform").routeId("route2").
  
onException(Exception.class).process(exceptionProcessor).markRollbackOnlyLast().end().
     transacted("PROPAGATION_REQUIRES_NEW").
      .....

Route 1 calls route 2 like the following:
     to("direct:startTransform");

I would like the two routes to be in different transactions because if an
Exception is thrown in route 2 I do not want route 2 to rollback



--
View this message in context: http://camel.465427.n5.nabble.com/Two-routes-two-transactions-tp5720484p5720491.html
Sent from the Camel Development mailing list archive at Nabble.com.

Mime
View raw message