[jboss-cvs] jboss-seam/src/main/org/jboss/seam/util ...

Gavin King gavin.king at jboss.com
Wed Sep 19 19:39:43 EDT 2007


  User: gavin   
  Date: 07/09/19 19:39:43

  Modified:    src/main/org/jboss/seam/util  Work.java
  Log:
  workaround case of ROLLEDBACK txn, not sure about this fix
  
  Revision  Changes    Path
  1.9       +2 -1      jboss-seam/src/main/org/jboss/seam/util/Work.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Work.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/util/Work.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- Work.java	24 Jun 2007 06:34:34 -0000	1.8
  +++ Work.java	19 Sep 2007 23:39:43 -0000	1.9
  @@ -24,7 +24,8 @@
      
      public final T workInTransaction() throws Exception
      {
  -      boolean transactionActive = Transaction.instance().isActiveOrMarkedRollback();
  +      boolean transactionActive = Transaction.instance().isActiveOrMarkedRollback()
  +              || Transaction.instance().isRolledBack(); //TODO: temp workaround, what should we really do in this case??
         boolean begin = isNewTransactionRequired(transactionActive);
         UserTransaction userTransaction = begin ? Transaction.instance() : null;
         
  
  
  



More information about the jboss-cvs-commits mailing list