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: Transaction management when multicasting within a route
Date Sat, 17 Sep 2016 13:25:58 GMT
You can do the stuff that should not participate in the transaction in
parallel, but all the DB updates etc should be single threaded and
sequential.

There is no free lunch when it comes to TX and especially if you use
XA with 2-phase commit.



On Sat, Sep 17, 2016 at 2:21 PM, sairam75 <sairamyandluri7@gmail.com> wrote:
> Thanks for the response Claus.
>
> Agreed that the transaction should be done in a single transaction. The idea
> behind having multicasting is, we provide services and time complexity is
> one of our major concerns. Hence we have multiple threads for invoking
> independent write/update calls. In this case, for transaction management we
> would need to sacrifice the time and can make all the calls as sequential.
> So there isn't a way to manage as a transaction though when there are
> multiple threads.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Transaction-management-when-multicasting-within-a-route-tp5787657p5787668.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Mime
View raw message