Re: Single Transaction across EntityManagers

2018-06-05 Thread Timothy Ward
Hi Kaja, If there is one TX in a thread and if that thread happens to go across boundaries, they have to use the same TX. This is exactly what Transaction Control does if you use the required method. Also your use case definitely requires you to use XA transactions. You have multiple

RE: Single Transaction across EntityManagers

2018-06-05 Thread Mohideen, Kaja (Nokia - IN/Chennai)
Hi Tim, Thanks for responding. I have seen TX Control Project in Aries website. But, that will need my code to explicit to do this TX management. I don’t have a case where I want one of my bundles have their “own” TX. If there is one TX in a thread and if that thread happens to go across

Re: Single Transaction across EntityManagers

2018-06-05 Thread Timothy Ward
Hello, Have you considered using Aries Transaction Control to manage your transactions? This is a much more reliable way to deal with transactions that run across module boundaries, and it is much clearer which resources have “opted in” to the transaction. Best Regards, Tim On 1 Jun 2018,