User: fleury  
  Date: 00/09/26 17:33:26

  Modified:    src/main/org/jboss/ejb EnterpriseContext.java
  Log:
  Clean the instance for sure
  
  Revision  Changes    Path
  1.12      +17 -1     jboss/src/main/org/jboss/ejb/EnterpriseContext.java
  
  Index: EnterpriseContext.java
  ===================================================================
  RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/ejb/EnterpriseContext.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- EnterpriseContext.java    2000/09/26 22:37:14     1.11
  +++ EnterpriseContext.java    2000/09/27 00:33:26     1.12
  @@ -36,7 +36,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.11 $
  + *   @version $Revision: 1.12 $
    */
   public abstract class EnterpriseContext
   {
  @@ -131,6 +131,22 @@
          
          return locked != 0;
      }
  +   
  +   /*
  +   * clear()
  +   *
  +   * before reusing this context we clear it of previous state called by pool.free()
  +   */
  +   public void clear() {
  +   
  +    this.id = null;
  +     this.locked = 0;
  +     this.principal = null;
  +     this.synch = null;
  +     this.transaction = null;
  +   
  +   }
  +        
       
      // Package protected ---------------------------------------------
       
  
  
  

Reply via email to