commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: jakarta-commons/dbcp/src/java/org/apache/commons/dbcp BasicDataSource.java
Date Thu, 21 Aug 2003 22:21:37 GMT
dirkv       2003/08/21 15:21:37

  Modified:    dbcp/src/java/org/apache/commons/dbcp BasicDataSource.java
  Log:
  Restore "removeAbandoned" function
  It was disabled in this commit:
  
  Revision : 1.13
  Date : 2003/4/9 0:19:37
  Author : 'dgraham'
  Description :
  Deprecated Abandoned* classes, no functionality changes.
  
  Revision  Changes    Path
  1.19      +10 -5     jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/BasicDataSource.java
  
  Index: BasicDataSource.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/BasicDataSource.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- BasicDataSource.java	21 Aug 2003 19:00:26 -0000	1.18
  +++ BasicDataSource.java	21 Aug 2003 22:21:37 -0000	1.19
  @@ -662,7 +662,12 @@
           }
   
           // Create an object pool to contain our active connections
  -        connectionPool = new GenericObjectPool();
  +        if ((abandonedConfig != null) && (abandonedConfig.getRemoveAbandoned()
== true)) {
  +            connectionPool = new AbandonedObjectPool(null,abandonedConfig);
  +        }
  +        else {
  +            connectionPool = new GenericObjectPool();
  +        }
           connectionPool.setMaxActive(maxActive);
           connectionPool.setMaxIdle(maxIdle);
           connectionPool.setMinIdle(minIdle);
  
  
  

Mime
View raw message