===================================================================================
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.
没有合适的资源?快使用搜索试试~ 我知道了~
org.apache.commons.dbcp.BasicDataSource资源保下载
5星 · 超过95%的资源 需积分: 34 395 下载量 38 浏览量
2008-03-20
11:43:24
上传
评论 1
收藏 626KB GZ 举报
温馨提示
共122个文件
java:71个
xml:19个
gif:10个
org.apache.commons.dbcp的资源包
资源推荐
资源详情
资源评论
收起资源包目录
org.apache.commons.dbcp.BasicDataSource资源保下载 (122个子文件)
project.css 66B
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 1KB
overview.html 1KB
commons-dbcp-1.2.2.jar 119KB
BasicDataSource.java 43KB
SequencedHashMap.java 32KB
JOCLContentHandler.java 29KB
DelegatingResultSet.java 28KB
InstanceKeyDataSource.java 28KB
DriverAdapterCPDS.java 21KB
TesterResultSet.java 19KB
DelegatingCallableStatement.java 19KB
PoolableConnectionFactory.java 19KB
PerUserPoolDataSource.java 19KB
TestPerUserPoolDataSource.java 18KB
TestConnectionPool.java 17KB
DelegatingConnection.java 17KB
PoolingDriver.java 16KB
TestSharedPoolDataSource.java 15KB
ConnectionImpl.java 15KB
PoolingDataSource.java 14KB
BasicDataSourceFactory.java 13KB
DelegatingStatement.java 13KB
PooledConnectionImpl.java 13KB
CPDSConnectionFactory.java 12KB
KeyedCPDSConnectionFactory.java 12KB
PoolingConnection.java 11KB
TestBasicDataSource.java 11KB
DelegatingPreparedStatement.java 11KB
SharedPoolDataSource.java 9KB
TestJOCLContentHandler.java 9KB
InstanceKeyObjectFactory.java 8KB
TesterPreparedStatement.java 8KB
TesterConnection.java 8KB
TestManual.java 8KB
TesterStatement.java 7KB
ManualPoolingDriverExample.java 7KB
LRUMap.java 7KB
TestPStmtPoolingBasicDataSource.java 6KB
TestPoolingDataSource.java 6KB
AbandonedTrace.java 6KB
ManualPoolingDataSourceExample.java 6KB
TestAbandonedObjectPool.java 6KB
AbandonedObjectPool.java 6KB
TestAbandonedBasicDataSource.java 5KB
BasicDataSourceExample.java 5KB
AbandonedConfig.java 5KB
TestJndi.java 4KB
JOCLPoolingDriverExample.java 4KB
ConstructorUtil.java 4KB
TesterDriver.java 4KB
PoolablePreparedStatement.java 4KB
TestPoolableConnection.java 4KB
PerUserPoolDataSourceFactory.java 4KB
TestDelegatingPreparedStatement.java 4KB
PoolableConnection.java 4KB
TestDelegatingConnection.java 3KB
TestDelegatingStatement.java 3KB
SQLNestedException.java 3KB
DbcpException.java 3KB
DriverManagerConnectionFactory.java 3KB
TestBasicDataSourceFactory.java 3KB
UserPassKey.java 3KB
TestPStmtPooling.java 3KB
TestFactory.java 2KB
TestAll.java 2KB
SharedPoolDataSourceFactory.java 2KB
PoolKey.java 2KB
PoolablePreparedStatementStub.java 2KB
TestJOCLed.java 2KB
PooledConnectionAndInfo.java 2KB
DataSourceConnectionFactory.java 2KB
DriverConnectionFactory.java 2KB
ConnectionFactory.java 1KB
TestAll.java 1KB
test.jocl 2KB
testpool.jocl 2KB
dbcp-logo-blue.jpg 5KB
release-notes.jsl 7KB
abandon.jsp 5KB
dbcp-logo-white.png 12KB
project.properties 3KB
poolingDriverExample.jocl.sample 3KB
build.properties.sample 2KB
LICENSE.txt 11KB
RELEASE-NOTES.txt 6KB
README.txt 2KB
共 122 条
- 1
- 2
资源评论
- yoghurt2011-09-18一个包根本不够用啊,不过对于调试程序bug有时候应该足够了。
- wpscs8592016-11-10最好有一套完整的开发包!
- lydia_xxl2012-07-10确实有待完善
- hfzlmx2014-06-26最好有一套完整的开发包!
- apwmk2012-07-09最好有一套完整的开发包!
li285913050
- 粉丝: 23
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功