Atomikos Forum |
|
Hi,
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. Thanks!
I am puzzled as well.
The configuration on http://www.atomikos.com/Documentation/SpringIntegration 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. |