[Jboss-cvs] JBoss Messaging SVN: r1348 - branches/Branch_1_0/src/main/org/jboss/jms/client/container

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Sep 22 15:37:04 EDT 2006


Author: ovidiu.feodorov at jboss.com
Date: 2006-09-22 15:37:02 -0400 (Fri, 22 Sep 2006)
New Revision: 1348

Modified:
   branches/Branch_1_0/src/main/org/jboss/jms/client/container/TransactionAspect.java
Log:
removed unnecessary check. The check will be performed in rm.rollbackLocal() anyway

Modified: branches/Branch_1_0/src/main/org/jboss/jms/client/container/TransactionAspect.java
===================================================================
--- branches/Branch_1_0/src/main/org/jboss/jms/client/container/TransactionAspect.java	2006-09-22 19:29:57 UTC (rev 1347)
+++ branches/Branch_1_0/src/main/org/jboss/jms/client/container/TransactionAspect.java	2006-09-22 19:37:02 UTC (rev 1348)
@@ -36,7 +36,6 @@
 import org.jboss.jms.message.MessageProxy;
 import org.jboss.jms.tx.AckInfo;
 import org.jboss.jms.tx.LocalTx;
-import org.jboss.jms.tx.TxState;
 import org.jboss.jms.tx.ResourceManager;
 import org.jboss.logging.Logger;
 
@@ -135,13 +134,6 @@
       ResourceManager rm = connState.getResourceManager();
       ConnectionDelegate conn = (ConnectionDelegate)connState.getDelegate();
 
-      TxState tx = rm.getTx(state.getCurrentTxId());
-
-      if (tx == null)
-      {
-         throw new IllegalStateException("Cannot find tx:" + state.getCurrentTxId());
-      }
-
       try
       {
          rm.rollbackLocal((LocalTx)state.getCurrentTxId(), conn);




More information about the jboss-cvs-commits mailing list