Connection connection = null;
try {
} catch (SQLException e) {
} finally {
if (connection != null) {
}
}
BoneCPConfig config = new BoneCPConfig();
config.setAcquireIncrement(5);
config.setAcquireRetryAttempts(10);
config.setIdleConnectionTestPeriod(60);
BoneCP connectionPool = new BoneCP(config);
BoneCP connectionPool = new BoneCP(config);
Connection connection = null;
try {
connection = connectionPool.getConnection();
} catch (SQLException e) {
connectionPool = new BoneCP(config);
connection = connectionPool.getConnection();
}