[jboss-cvs] JBossAS SVN: r67844 - trunk/ejb3/src/main/org/jboss/ejb3/mdb/inflow.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Dec 4 04:50:31 EST 2007


Author: wolfc
Date: 2007-12-04 04:50:31 -0500 (Tue, 04 Dec 2007)
New Revision: 67844

Modified:
   trunk/ejb3/src/main/org/jboss/ejb3/mdb/inflow/MessageInflowLocalProxy.java
Log:
EJBTHREE-1142: also disassociate transaction on commit / rollback error

Modified: trunk/ejb3/src/main/org/jboss/ejb3/mdb/inflow/MessageInflowLocalProxy.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/mdb/inflow/MessageInflowLocalProxy.java	2007-12-04 08:08:17 UTC (rev 67843)
+++ trunk/ejb3/src/main/org/jboss/ejb3/mdb/inflow/MessageInflowLocalProxy.java	2007-12-04 09:50:31 UTC (rev 67844)
@@ -431,9 +431,6 @@
                   log.trace("MessageEndpoint " + getProxyString(proxy) + " commit");
                tm.commit();
             }
-            
-            // We're done with the transaction
-            transaction = null;
          }
 
          // If we suspended the incoming transaction, resume it
@@ -452,6 +449,9 @@
       }
       finally
       {
+         // EJBTHREE-1142: We're done with the transaction
+         transaction = null;
+         
          // Resume any suspended transaction
          if (currentTx != null)
          {




More information about the jboss-cvs-commits mailing list