-
Bug
-
Resolution: Done
-
Major
-
JBossAS-4.2.3.GA, JBossAS-5.0.0.CR2
-
None
-
Low
JTA spec says the following UserTransaction.rollback():
"Roll back the transaction associated with the current thread. When this method completes, the thread becomes
associated with no transaction."
Currently though, the transaction propagation context (tpc) is only cleared upon rollback() being called successfully.
If any exceptions arise from the rollback() call on the server, the tpc is not cleared, leaving it lingering. A finally section
needs to be added to ClientUserTransaction.rollback() so that the tpc is cleared.
Similar thing happens with UserTransaction.commit()L
"When this method completes, the thread becomes associated with no transaction. "
Currently though, the transaction propagation context (tpc) is only cleared upon commit() being called successfully
or upon a RollbackException. If any exceptions arise from the commit() call on the server, the tpc is not cleared, leaving
it lingering. A finally section needs to be added to ClientUserTransaction.commit() so that the tpc is cleared.
Besides, handling of org.jboss.remoting.CannotConnectException needs adding to rollback()/commit() to react in the
same way as for RemoteException.
- is incorporated by
-
JBPAPP-1285 JBAS-6116 - UserTransaction.commit()/rollback() are not fully compliant with the JTA standard
- Resolved