Author: asmuts
Date: Tue Apr 11 15:02:08 2006
New Revision: 393319

URL: http://svn.apache.org/viewcvs?rev=393319&view=rev
Log:
set max idel for jdbc auxiliary connection pool to -1, since the generic object 
pool uses a mysterious 8 as the default.

Modified:
    
jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/disk/jdbc/JDBCDiskCache.java

Modified: 
jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/disk/jdbc/JDBCDiskCache.java
URL: 
http://svn.apache.org/viewcvs/jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/disk/jdbc/JDBCDiskCache.java?rev=393319&r1=393318&r2=393319&view=diff
==============================================================================
--- 
jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/disk/jdbc/JDBCDiskCache.java
 (original)
+++ 
jakarta/jcs/trunk/src/java/org/apache/jcs/auxiliary/disk/jdbc/JDBCDiskCache.java
 Tue Apr 11 15:02:08 2006
@@ -847,6 +847,10 @@
         // any ObjectPool implementation will suffice.
         ObjectPool connectionPool = new GenericObjectPool( null, maxActive );
 
+        // TODO make configurable
+        // By dfault the size is 8!!!!!!!  
+        ((GenericObjectPool)connectionPool).setMaxIdle( -1 );
+        
         // Next, we'll create a ConnectionFactory that the
         // pool will use to create Connections.
         // We'll use the DriverManagerConnectionFactory,



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to