展开全部
参考配置:
public class DbConnectionDefaultPool extends DbConnectionProvider {
private static final String NAME = "Default Connection Pool";
private static final String DESCRIPTION = "The default connection provider "
+ "that uses the connection pool from javaexchange.com. It works with "
+ "almost any database setup, is customizable, and offers good performance. "
+ "Use this connection provider unless you have your own or can use a "
+ "container managed connection pool.";
private static final String AUTHOR = "colorzhang@32313133353236313431303231363533e4b893e5b19e31333431343631yeah.net";
private static final int MAJOR_VERSION = 1;
private static final int MINOR_VERSION = 0;
private static final boolean POOLED = true;
private ConnectionPool connectionPool = null;
private Properties props;
private Properties propDescriptions;
private Object initLock = new Object();
public DbConnectionDefaultPool() {
//this.manager = manager;
props = new Properties();
propDescriptions = new Properties();
//Initialize all property values
initializeProp