[jboss-cvs] JBossAS SVN: r66844 - trunk/ejb3/src/main/org/jboss/ejb3/tx.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Nov 7 19:44:34 EST 2007
Author: ALRubinger
Date: 2007-11-07 19:44:34 -0500 (Wed, 07 Nov 2007)
New Revision: 66844
Modified:
trunk/ejb3/src/main/org/jboss/ejb3/tx/Ejb3TxPolicy.java
Log:
[EJBTHREE-1103] Added system logging (error verbosity) when EJBTransactionRolledbackException is thrown from within context of caller's UserTx
Modified: trunk/ejb3/src/main/org/jboss/ejb3/tx/Ejb3TxPolicy.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/tx/Ejb3TxPolicy.java 2007-11-07 23:50:11 UTC (rev 66843)
+++ trunk/ejb3/src/main/org/jboss/ejb3/tx/Ejb3TxPolicy.java 2007-11-08 00:44:34 UTC (rev 66844)
@@ -82,9 +82,16 @@
// its either a RuntimeException or RemoteException
if (t instanceof EJBTransactionRolledbackException)
+ {
+ log.error(t);
throw t;
+ }
else
- throw new EJBTransactionRolledbackException(t.getMessage(), (Exception) t);
+ {
+ Throwable ejbtre = new EJBTransactionRolledbackException(t.getMessage(), (Exception) t);
+ log.error(ejbtre);
+ throw ejbtre;
+ }
}
}
More information about the jboss-cvs-commits
mailing list