Atomikos Forum

Transaction Timeout effects all following Transactions


I'm using declarative transactions with spring and I set a timeout to a specific transaction (via annotation). Unfortunately, this set timout effects all following transactions too (should only be valid for this one). The reason for this behaviour is the call in com.atomikos.icatch.jta.UserTransactionImp in method setTransactionTimeout to txmgr_.setTransactionTimeout, because txmgr_ is singleton.
I don't think that it should work like this.

Nikolaus Graf Send private email
Wednesday, February 26, 2014
Good catch - this is not the way it should be, it should only affect the "userTx.begin()" call on this Thread.
Torsten Krah Send private email
Thursday, February 27, 2014
I am puzzled as well.

The configuration on
suggests that UserTransactionImp.setTimeout()
configures a default timeout for all transactions.

But the actual code in the class suggest that the setting affects only transactions that use the same thread. Confusing.

More documentation in Atomikos classes would be helpful.
Rod Witzel Send private email
Tuesday, March 11, 2014

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics