===================================================================================
Before running these examples make sure you have registered the database
driver you want to use. If you don't you will get the following error:
"org.apache.commons.dbcp.DbcpException: java.sql.SQLException: No suitable driver"
The DriverManager class will attempt to load the driver classes referenced
in the "jdbc.drivers" system property. For example you might specify
-Djdbc.drivers=foo.bah.Driver:wombat.sql.Driver:bad.taste.ourDriver
as command line argument to the java VM.
A program can also explicitly load JDBC drivers at any time. For
example, the my.sql.Driver is loaded with the following statement:
Class.forName("my.sql.Driver");
===================================================================================
ManualPoolingDriverExample.java
Provides a simple example of how to use the DBCP package with a
manually configured PoolingDriver.
Look at the comments with that file for instructions on how to
build and run it.
ManualPoolingDataSource.java
Provides a simple example of how to use the DBCP package with a
manually configured PoolingDataSource.
Look at the comments with that file for instructions on how to
build and run it.
JOCLPoolingDriverExample.java
poolingDriverExample.jocl.sample
Provides an example JOCL configuration and JDBC client that
shows how to use the DBCP PoolingDriver with an external
configuration. (JOCL will be replaced by Digester when it
is available in jakarta-commons.)
Look at the comments with those files for instructions on how to
build and run it.
See also the JavaDoc documentation (use "ant doc" to generate it),
especially the package documentation for org.apache.commons.dbcp
for an overview of how it all works.
The test cases (the source files whose names start with "Test")
provide some additional examples.
没有合适的资源?快使用搜索试试~ 我知道了~
commons-dbcp 1.4.1源码+jar。
共154个文件
java:97个
xml:25个
gif:10个
需积分: 12 17 下载量 39 浏览量
2018-12-21
11:14:53
上传
评论
收藏 853KB ZIP 举报
温馨提示
commons-dbcp 1.4.1源码+jar。解决库异常停机重启后被dbcp连接撑爆的问题。https://blog.csdn.net/u010920692/article/details/61417914
资源推荐
资源详情
资源评论
收起资源包目录
commons-dbcp 1.4.1源码+jar。 (154个子文件)
getConnection.gif 80KB
createDataSource.gif 49KB
prepareStatement.gif 47KB
PoolingDataSource.gif 45KB
PoolingConnection.gif 36KB
Delegating.gif 35KB
AbandonedObjectPool.gif 22KB
BasicDataSource.gif 16KB
static_structure_dia.gif 10KB
ConnectionFactory.gif 5KB
package.html 11KB
package.html 5KB
package.html 3KB
package.html 2KB
package.html 1KB
overview.html 985B
commons-dbcp-1.4.1.jar 159KB
BasicDataSource.java 63KB
DelegatingDatabaseMetaData.java 46KB
DelegatingResultSet.java 42KB
PoolableConnectionFactory.java 38KB
TestConnectionPool.java 33KB
InstanceKeyDataSource.java 32KB
JOCLContentHandler.java 31KB
DelegatingCallableStatement.java 30KB
TesterResultSet.java 27KB
DriverAdapterCPDS.java 26KB
DelegatingConnection.java 23KB
PooledConnectionImpl.java 22KB
PerUserPoolDataSource.java 21KB
TestBasicDataSource.java 20KB
TesterDatabaseMetaData.java 19KB
TestSharedPoolDataSource.java 19KB
TestPerUserPoolDataSource.java 18KB
PoolingConnection.java 17KB
PoolingDriver.java 17KB
DelegatingPreparedStatement.java 17KB
DelegatingStatement.java 16KB
BasicDataSourceFactory.java 15KB
PoolingDataSource.java 15KB
TestJOCLContentHandler.java 13KB
TesterCallableStatement.java 13KB
KeyedCPDSConnectionFactory.java 13KB
LocalXAConnectionFactory.java 13KB
TestManagedDataSourceInTx.java 12KB
CPDSConnectionFactory.java 12KB
TesterPreparedStatement.java 11KB
TesterConnection.java 11KB
ManagedConnection.java 10KB
TestManagedDataSource.java 10KB
SharedPoolDataSource.java 9KB
BasicManagedDataSource.java 9KB
TestPStmtPoolingBasicDataSource.java 9KB
TestAbandonedBasicDataSource.java 9KB
TesterStatement.java 8KB
InstanceKeyObjectFactory.java 8KB
TestManual.java 8KB
ConnectionImpl.java 8KB
ManualPoolingDriverExample.java 7KB
TransactionContext.java 6KB
TestPoolingDataSource.java 6KB
AbandonedTrace.java 6KB
ManualPoolingDataSourceExample.java 6KB
PoolableManagedConnectionFactory.java 6KB
TestAbandonedObjectPool.java 6KB
TestKeyedCPDSConnectionFactory.java 6KB
AbandonedConfig.java 6KB
TestCPDSConnectionFactory.java 6KB
TestBasicDataSourceFactory.java 6KB
TestPStmtPooling.java 5KB
AbandonedObjectPool.java 5KB
TestDriverAdapterCPDS.java 5KB
TransactionRegistry.java 5KB
TestDelegatingConnection.java 5KB
TestDelegatingPreparedStatement.java 5KB
DataSourceXAConnectionFactory.java 5KB
TestDelegatingCallableStatement.java 5KB
BasicDataSourceExample.java 5KB
TestJndi.java 5KB
PooledConnectionProxy.java 4KB
PoolableConnection.java 4KB
TesterDriver.java 4KB
JOCLPoolingDriverExample.java 4KB
PoolableCallableStatement.java 4KB
PoolablePreparedStatement.java 4KB
ConstructorUtil.java 4KB
TestDriverManagerConnectionFactory.java 4KB
TestDelegatingStatement.java 4KB
PerUserPoolDataSourceFactory.java 4KB
TestDelegatingDatabaseMetaData.java 3KB
ManagedDataSource.java 3KB
TestPoolableConnection.java 3KB
TestBasicManagedDataSource.java 3KB
UserPassKey.java 3KB
DriverManagerConnectionFactory.java 3KB
DbcpException.java 3KB
ConnectionPoolDataSourceProxy.java 3KB
TestInstanceKeyDataSource.java 3KB
PoolableManagedConnection.java 2KB
TestFactory.java 2KB
共 154 条
- 1
- 2
资源评论
bfs198
- 粉丝: 0
- 资源: 20
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功