[jboss-cvs] JBossAS SVN: r80390 - branches/JBPAPP_4_2_0_GA_CP/server/src/main/org/jboss/ejb/plugins.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Nov 3 09:51:00 EST 2008


Author: cbredesen
Date: 2008-11-03 09:51:00 -0500 (Mon, 03 Nov 2008)
New Revision: 80390

Modified:
   branches/JBPAPP_4_2_0_GA_CP/server/src/main/org/jboss/ejb/plugins/AbstractTxInterceptorBMT.java
Log:
JBPAPP-1002 removed noisy logging for BMT not completing transation

Modified: branches/JBPAPP_4_2_0_GA_CP/server/src/main/org/jboss/ejb/plugins/AbstractTxInterceptorBMT.java
===================================================================
--- branches/JBPAPP_4_2_0_GA_CP/server/src/main/org/jboss/ejb/plugins/AbstractTxInterceptorBMT.java	2008-11-03 14:15:52 UTC (rev 80389)
+++ branches/JBPAPP_4_2_0_GA_CP/server/src/main/org/jboss/ejb/plugins/AbstractTxInterceptorBMT.java	2008-11-03 14:51:00 UTC (rev 80390)
@@ -275,46 +275,23 @@
       {
          log.error("Failed to get status", ex);
       }
-
-      try
+      switch (status)
       {
-         
-         switch (status)
-         {
-            case Status.STATUS_COMMITTING :
-            case Status.STATUS_MARKED_ROLLBACK :
-            case Status.STATUS_PREPARING :
-            case Status.STATUS_ROLLING_BACK :
-               try
-               {
-                  tm.rollback();
-               }
-               catch (Exception ex)
-               {
-                  log.error("Failed to rollback", ex);
-               }
-               String msg = "BMT stateful bean '" + container.getBeanMetaData().getEjbName()
-                     + "' did not complete user transaction properly status=" + TxUtils.getStatusAsString(status);
-               log.error(msg);
-         }
-      }
-      finally
-      {
-         Transaction tx = null;
-         try
-         {
-            tx = tm.suspend();
-         }
-         catch (SystemException ex)
-         {
-            log.error("Failed to suspend transaction", ex);
-         }
-         if (tx != null)
-         {
-            String msg = "BMT stateful bean " + container.getBeanMetaData().getEjbName()
-                   + " did not complete user transaction properly tx=" + tx; 
+         case Status.STATUS_COMMITTING :
+         case Status.STATUS_MARKED_ROLLBACK :
+         case Status.STATUS_PREPARING :
+         case Status.STATUS_ROLLING_BACK :
+            try
+            {
+               tm.rollback();
+            }
+            catch (Exception ex)
+            {
+               log.error("Failed to rollback", ex);
+            }
+            String msg = "BMT stateful bean '" + container.getBeanMetaData().getEjbName()
+                  + "' did not complete user transaction properly status=" + TxUtils.getStatusAsString(status);
             log.error(msg);
-         }
       }
    }
 




More information about the jboss-cvs-commits mailing list