ConnectionFactory connectionFactory = new DriverManagerConnectionFactory(getJdbcURL(), getUserId(), getUserPwd());
PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(connectionFactory, connectPool, null, null, true, true);
poolableConnectionFactory.setDefaultTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);
PoolingDriver driver = new PoolingDriver();
driver.registerPool(DriverName, connectPool);
}
public Connection getConnection() throws SQLException {
Connection conn = DriverManager.getConnection("jdbc:apache:commons:dhcp:" + DriverName);
return conn;