[jboss-cvs] JBossAS SVN: r58960 - branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/tx

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Dec 10 18:03:34 EST 2006


Author: scott.stark at jboss.org
Date: 2006-12-10 18:03:32 -0500 (Sun, 10 Dec 2006)
New Revision: 58960

Modified:
   branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/tx/UserTransactionImpl.java
Log:
Fix the log level and add the missing serialVersionUID

Modified: branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/tx/UserTransactionImpl.java
===================================================================
--- branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/tx/UserTransactionImpl.java	2006-12-10 22:54:28 UTC (rev 58959)
+++ branches/Branch_4_2/ejb3/src/main/org/jboss/ejb3/tx/UserTransactionImpl.java	2006-12-10 23:03:32 UTC (rev 58960)
@@ -42,6 +42,7 @@
  */
 public final class UserTransactionImpl implements UserTransaction, java.io.Externalizable
 {
+   private static final long serialVersionUID = 2403204397187452430L;
    protected static Logger log = Logger.getLogger(UserTransactionImpl.class);
 
    /**
@@ -52,8 +53,8 @@
 
    public UserTransactionImpl()
    {
-      if (log.isDebugEnabled())
-         log.debug("new UserTx: " + this);
+      if (log.isTraceEnabled())
+         log.trace("new UserTx: " + this);
       this.tm = TxUtil.getTransactionManager();
    }
 
@@ -64,8 +65,8 @@
       tm.begin();
 
       Transaction tx = tm.getTransaction();
-      if (log.isDebugEnabled())
-         log.debug("UserTx begin: " + tx);
+      if (log.isTraceEnabled())
+         log.trace("UserTx begin: " + tx);
 
    }
 
@@ -74,8 +75,8 @@
                   SecurityException, IllegalStateException, SystemException
    {
       Transaction tx = tm.getTransaction();
-      if (log.isDebugEnabled())
-         log.debug("UserTx commit: " + tx);
+      if (log.isTraceEnabled())
+         log.trace("UserTx commit: " + tx);
 
       tm.commit();
    }
@@ -84,8 +85,8 @@
            throws IllegalStateException, SecurityException, SystemException
    {
       Transaction tx = tm.getTransaction();
-      if (log.isDebugEnabled())
-         log.debug("UserTx rollback: " + tx);
+      if (log.isTraceEnabled())
+         log.trace("UserTx rollback: " + tx);
       tm.rollback();
    }
 
@@ -93,8 +94,8 @@
            throws IllegalStateException, SystemException
    {
       Transaction tx = tm.getTransaction();
-      if (log.isDebugEnabled())
-         log.debug("UserTx setRollbackOnly: " + tx);
+      if (log.isTraceEnabled())
+         log.trace("UserTx setRollbackOnly: " + tx);
 
       tm.setRollbackOnly();
    }




More information about the jboss-cvs-commits mailing list