5 Replies Latest reply on May 20, 2016 11:25 AM by Ondrej Chaloupka

    JTS vs. JTA transaction timeout behavior during 2PC prepare

    Ondrej Chaloupka Master

      Hi guys,


      I have here another question on behavior of TM. Now it's about transaction timeout. I do have a test which simulates a transaction being timeouted during prepare phase of 2PC. In my case just prepare phase takes long enough to transaction time to live expires.

      I can observe different behavior of JTA and JTS implementation


      For JTA it just ignores the fact that timeout occurs. The prepare phase waits till process which delays processing is finished and then transaction is committed.


      For JTS timeout is counted and if occurs (either it's hit in prepare phase) the transaction is rollbacked.


      I would like just check if this is correct from your point of view? Especially the JTA behavior.


      Thanks for your input