There is no property to "initially start up 's' connections". You can make a feature request for this if you want.
I use the following method to initialize some idle connections:
/**
* Add an idle connections to the connection pool
* Purpose: pre-loading of idle connections speeds of connection time by client
* Note: maximum number of idle connections will never exceed maximum number of idle connections
* @param idleConnectionCount number of idleConnections
*/
public void addIdleConnection(int idleConnectionCount)
throws Exception {
for (int i=0; i < idleConnectionCount; i++) {
connectionPool.addObject();
}
}
This method is in class DatabaseConnectionPool that encapsulated driver setup and DBCP initialization.
But a property may be the best way in a future release of DBCP.
-- John Zoetebier Web site: http://www.transparent.co.nz
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
