Java common four kinds of database connection pool
Source: Internet
Author: User
C3P0 is an open source JDBC Connection pool that is published with Hibernate in the Lib directory and includes connection objects that implement the statement and datasources pools for JDBC3 and JDBC2 extension specifications.
BONECP is an open-source, fast JDBC connection pool. BONECP is very small, only more than 40 K (run time need log4j and Google collections support, both add up is not small), and by contrast c3p0 to more than 600 K. The other person feels that BONECP has the disadvantage that JDBC-driven loading is outside the connection pool, which is not flexible enough for some application server configurations. Of course, small size is not BONECP excellent reason, BONECP in the end what is outstanding place, please look at the performance test report.
DBCP (db Connection Pool) is a database connection pool that relies on the Jakarta Commons-pool object pooling mechanism, and the Tomcat data source uses DBCP. At present, there are two versions of DBCP 1.3 and 1.4 respectively. The 1.3 version corresponds to JDK 1.4-1.5 and JDBC 3, while the 1.4 version corresponds to JDK 1.6 and JDBC 4. So when you choose the version you want to see what JDK version you are using, there is no difference in functionality.
Proxool is a Java SQL driver driver that provides a connection pooling package for other types of drivers you choose. Can be very simple to migrate to existing code. Fully configurable. Fast, mature, and robust. Can transparently add connection pooling capabilities to your existing JDBC driver.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service