[jboss-cvs] jboss-seam/src/ioc/org/jboss/seam/ioc/spring ...

Michael Youngstrom youngm at gmail.com
Thu Aug 23 13:44:17 EDT 2007


  User: myoungstrom
  Date: 07/08/23 13:44:16

  Modified:    src/ioc/org/jboss/seam/ioc/spring  SeamLifecycleUtils.java
  Log:
  Added check for seam call already ended and added a warning if spring started the seamCall but didn't end it.
  
  Revision  Changes    Path
  1.3       +7 -2      jboss-seam/src/ioc/org/jboss/seam/ioc/spring/SeamLifecycleUtils.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SeamLifecycleUtils.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/ioc/org/jboss/seam/ioc/spring/SeamLifecycleUtils.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- SeamLifecycleUtils.java	3 Jul 2007 20:36:29 -0000	1.2
  +++ SeamLifecycleUtils.java	23 Aug 2007 17:44:16 -0000	1.3
  @@ -66,8 +66,13 @@
         @Override
         public void afterCompletion(int status)
         {
  +         //Close the seam call we started if it is still active.
  +         if(ScopeType.APPLICATION.isContextActive()) {
            log.debug("Ending Transactional Seam Call");
            Lifecycle.endCall();
  +         } else {
  +            log.warn("Spring started a transactional Seam call but somebody else closed before it before the transaction committed.");
  +         }
         }
      }
   }
  
  
  



More information about the jboss-cvs-commits mailing list