Do conforming implementations of javax.transaction.Transaction
need to be thread safe?
Are implementations of this expected to handle concurrent requests from different threads?
As an example:
// Thread A
transaction.commit();
// Thread B, while that commit is still running
transaction.setRollbackOnly();
I am asking this question because I can see Infinispan interacting with the transaction manager in this way which results in a deadlock. I want to understand if this is a bug in Infinispan or the transaction manager.