User: patriot1burke
  Date: 01/06/15 16:37:05

  Modified:    src/main/org/jboss/ejb/plugins
                        EntityInstanceInterceptor.java
  Log:
  If an exception has been thrown, DO NOT remove the ctx from the InstanceCache
  if the ctx has been registered in an InstanceSynchronization.
  InstanceSynchronization will remove the key for us.
  
  Revision  Changes    Path
  1.30      +6 -2      
jboss/src/main/org/jboss/ejb/plugins/EntityInstanceInterceptor.java
  
  Index: EntityInstanceInterceptor.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/EntityInstanceInterceptor.java,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- EntityInstanceInterceptor.java    2001/06/11 19:52:26     1.29
  +++ EntityInstanceInterceptor.java    2001/06/15 23:37:05     1.30
  @@ -45,7 +45,7 @@
   *   @author Rickard �berg ([EMAIL PROTECTED])
   *   @author <a href="mailto:[EMAIL PROTECTED]";>Marc Fleury</a>
   *   @author <a href="mailto:[EMAIL PROTECTED]";>Sebastien Alborini</a>
  -*   @version $Revision: 1.29 $
  +*   @version $Revision: 1.30 $
   */
   public class EntityInstanceInterceptor
   extends AbstractInterceptor
  @@ -293,7 +293,11 @@
                        ctx.setTransaction(null);
                    }
                    
  -                 if (exceptionThrown)
  +                 // If an exception has been thrown, DO NOT remove the ctx
  +                 // if the ctx has been registered in an InstanceSynchronization.
  +                 // InstanceSynchronization will remove the key for us
  +                 if (exceptionThrown && 
  +                     (tx == null || (mi.getTransaction() != null && 
!((EntityEnterpriseContext)ctx).isInvoked()))) 
                    {
                        // Discard instance
                        // EJB 1.1 spec 12.3.1
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to