如何使用带有dsn和不带dsdb的accdb文件的JdbcOdbcDriver创建连接池
我尝试使用Hikari数据源和sun.jdbc.odbc.ee.ConnectionPoolDataSource发现了不受支持的异常和一些fillThePool(Unknown Source)错误
sun.jdbc.odbc.ee.ConnectionPoolDataSource cpds =
new sun.jdbc.odbc.ee.ConnectionPoolDataSource("jdbc/OdbcPool");
try {
// Provide user credentials and database name
cpds.setUser("user");
cpds.setPassword("password");
cpds.setDataSourceName("HTPCDSN");
cpds.setLoginTimeout(100); // optional property
cpds.setMinPoolSize("10");
cpds.setInitialPoolSize("15");
cpds.setMaxPoolSize("20");
cpds.setMaxIdleTime("300");
cpds.setTimeoutFromPool("600");
// Maintenance interval of the pool. A maintenance thread will remove
// unwanted connections and cleanup the pool at the interval specified.
// This cannot be zero.
cpds.setMaintenanceInterval("900");
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}