Apache Commons DBCP 2.3.0 已发布。DBCP ( D ata b ase C onnection P ool)是一个依赖Jakarta commons-pool对象池机制的数据库连接池,Tomcat的数据源使用的就是DBCP。
更新内容如下:
AbandonedTrace.getTrace() contains race condition. Fixes DBCP-476.
FixAvoid javax.management.InstanceNotFoundException on shutdown when a bean is not registered. Fixes DBCP-482.
Make constant public: org.apache.commons.dbcp2.PoolingDriver.URL_PREFIX. Fixes DBCP-483.
DriverAdapterCPDS.setUser(), setPassword(), and getPooledConnection() with null arguments throw NullPointerExceptions when connection properties are set. Fixes DBCP-486.
Add API org.apache.commons.dbcp2.datasources.PerUserPoolDataSource.clear(). Fixes DBCP-487.
NPE for org.apache.commons.dbcp2.cpdsadapter.DriverAdapterCPDS.setConnectionProperties(null). Fixes DBCP-488.
The method org.apache.commons.dbcp2.PoolingDriver.getConnectionPool(String) does not tell you which pool name is not registered when it throws an exception. Fixes DBCP-490.
下载地址: