User: thedug  
  Date: 01/11/20 15:48:44

  Modified:    src/main/org/jboss/pool/connector Tag: Branch_2_4
                        ManagedConnectionPoolFactory.java
  Log:
  factory.destroy is now implemented to destroy the managed connection.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.1.1.2.1 +14 -0     
jbosspool/src/main/org/jboss/pool/connector/Attic/ManagedConnectionPoolFactory.java
  
  Index: ManagedConnectionPoolFactory.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosspool/src/main/org/jboss/pool/connector/Attic/ManagedConnectionPoolFactory.java,v
  retrieving revision 1.1.1.1
  retrieving revision 1.1.1.1.2.1
  diff -u -r1.1.1.1 -r1.1.1.1.2.1
  --- ManagedConnectionPoolFactory.java 2001/05/15 07:58:24     1.1.1.1
  +++ ManagedConnectionPoolFactory.java 2001/11/20 23:48:44     1.1.1.1.2.1
  @@ -48,6 +48,20 @@
       }
   
       /**
  +     * Permanently closes an object, after it is removed from the pool.  The
  +     * object will not be returned to the pool - after this, it is gone.  This
  +     * is called when the pool shrinks, and when the pool is shut down.
  +     */
  +    public void deleteObject(Object pooledObject) {
  +        try{
  +            ((ManagedConnection)pooledObject).destroy();
  +        }catch(Exception e) {
  +            log.println("deleteObject(): Unable to destroy ManagedConnection: "+e);
  +        }
  +
  +    }
  +
  +    /**
        * Creates a new ManagedConnection with the specified
        * parameters.
        */
  
  
  

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

Reply via email to