XA Transaction Issue

175 Views Asked by At

We have a specific requirement to consume one inbound messages from IBM MQ (source), generate around 3k outbound messages and publish all of them one by one to a destination IBM MQ - All this in 1 transaction - Transaction time out duration is 5 mins.
We are using Atomikos XA for our spring boot application to implement this requirement but getting a major issue when the transaction is timing out after 5 mins and within this time not all outbound messages were published to destination IBM MQ. I can see that 1k messages got published to the destination queue and the inbound message was rolled back to the source queue.
As we are using XA, none of outbound messages should have got published is my expectation but that's not the case - Is this not how XA works? Am i missing something here? Please clarify

0

There are 0 best solutions below