Initialize connection pool upon data source creation instead of request for first...
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 27 Jan 2009 23:05:10 +0000 (23:05 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 27 Jan 2009 23:05:10 +0000 (23:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@738293 13f79535-47bb-0310-9956-ffa450edef68

modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceFactory.java

index 7b94760..0841c52 100644 (file)
@@ -397,7 +397,8 @@ public class DataSourceFactory implements ObjectFactory {
             dataSource.getPoolProperties().setUseEquals(Boolean.parseBoolean(value));
         }
         
-
+        //initialize the pool itself
+        dataSource.createPool();
         // Return the configured DataSource instance
         return dataSource;
     }