Four popular Java connection pools

Source: Internet
Author: User

C3P0Is an open-source JDBC Connection pool, which is released together with Hibernate in the lib directory, including the DataSources object for implementing the Connection and Statement pool described in the jdbc3 and jdbc2 extension specifications.

BoneCPIs an open-source fast JDBC connection pool. BoneCP is very small and only requires the support of log4j and Google Collections when running 40 K. The two are not small.) In contrast, C3P0 requires more than six hundred K. In addition, I personally think the disadvantage of BoneCP is that the JDBC driver is loaded out of the connection pool, so the configuration of some application servers is not flexible enough. Of course, the small size is not why BoneCP is excellent. What are the highlights of BoneCP? Please refer to the performance test report.

DBCP DAtaBAseCOnnectionPOol) is a database connection pool that relies on the Jakarta commons-pool Object pool mechanism. The Tomcat data source uses DBCP. Currently, DBCP has two versions: 1.3 and 1.4. Version 1.3 corresponds to JDK 1.4-1.5 and JDBC 3, while version 1.4 corresponds to JDK 1.6 and JDBC 4. Therefore, when selecting a version, you need to check which JDK version you are using. There is no difference in functionality.

ProxoolIs a Java SQL Driver that encapsulates the connection pool of other types of drivers you choose. It can be easily transplanted to the existing code. Completely configurable. Fast, mature, and robust. You can transparently Add the connection pool function to your existing JDBC driver.

Link: http://coolshell.cn/articles/2483.html

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.