[jboss-dev-forums] [Design of JBoss Transaction Services] - org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction handli
dimitris@jboss.org
do-not-reply at jboss.com
Tue Jun 19 07:35:51 EDT 2007
| try
| {
| // Marked rollback
| if (tx.getStatus() == Status.STATUS_MARKED_ROLLBACK)
| {
| tx.rollback();
| }
| else
| {
| // Commit tx
| // This will happen if
| // a) everything goes well
| // b) app. exception was thrown
| tx.commit();
| }
|
In the case of an asynchronous rollback (timeout) the tx status is STATUS_ROLLEDBACK and so the commit causes:
| 12:35:09,391 ERROR [LogInterceptor] TransactionRolledbackException in method: pu
| blic abstract void org.jboss.test.tm.interfaces.TxTimeout.testOverriddenTimeoutE
| xpires() throws java.rmi.RemoteException, causedBy:
| java.lang.IllegalStateException: [com.arjuna.ats.internal.jta.transaction.arjuna
| core.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The
| transaction is not active!
| at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.c
| ommit(TransactionImple.java:223)
| at org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCM
| T.java:502)
| at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercep
|
Shouldn't the commit happen only is status is STATUS_ACTIVE ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055559#4055559
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055559
More information about the jboss-dev-forums
mailing list