You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2009/02/19 16:57:25 UTC

svn commit: r745908 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java

Author: markt
Date: Thu Feb 19 15:57:25 2009
New Revision: 745908

URL: http://svn.apache.org/viewvc?rev=745908&view=rev
Log:
Fix DBCP-215. Make sure initialSize connections are placed in the pool are created when the pool is initialized tather than on first use.
Patch suggested by psteitz

Modified:
    commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java

Modified: commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java?rev=745908&r1=745907&r2=745908&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java (original)
+++ commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/BasicDataSourceFactory.java Thu Feb 19 15:57:25 2009
@@ -322,6 +322,10 @@
           }
         }
 
+        // DBCP-215
+        // Trick to make sure that initialSize connections are created
+        dataSource.getLogWriter();
+
         // Return the configured DataSource instance
         return dataSource;
     }