// PoolableConnectionFactory poolableConnectionFactory =
new PoolableConnectionFactory( connectionFactory, connectionPool, null, null, false, true );
// Finally, we create the PoolingDriver itself...
Class.forName( "org.apache.commons.dbcp.PoolingDriver" );
PoolingDriver driver = (PoolingDriver) DriverManager.getDriver( DRIVER_NAME );
// ...and register our pool with it.
driver.registerPool( this.getPoolName(), connectionPool );
// Now we can just use the connect string
// "jdbc:apache:commons:dbcp:jcs"
// to access our pool of Connections.
}