[seam-commits] Seam SVN: r7739 - trunk/src/main/org/jboss/seam/util.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Mar 28 17:29:17 EDT 2008
Author: norman.richards at jboss.com
Date: 2008-03-28 17:29:17 -0400 (Fri, 28 Mar 2008)
New Revision: 7739
Modified:
trunk/src/main/org/jboss/seam/util/Work.java
Log:
JBSEAM-2309
Modified: trunk/src/main/org/jboss/seam/util/Work.java
===================================================================
--- trunk/src/main/org/jboss/seam/util/Work.java 2008-03-28 17:41:31 UTC (rev 7738)
+++ trunk/src/main/org/jboss/seam/util/Work.java 2008-03-28 21:29:17 UTC (rev 7739)
@@ -1,5 +1,6 @@
package org.jboss.seam.util;
+import javax.transaction.Status;
import javax.transaction.UserTransaction;
import org.jboss.seam.log.LogProvider;
@@ -47,7 +48,7 @@
}
catch (Exception e)
{
- if (begin)
+ if (begin && userTransaction.getStatus() != Status.STATUS_NO_TRANSACTION)
{
log.debug("rolling back transaction");
userTransaction.rollback();
More information about the seam-commits
mailing list