Several open-source database connection pools

Source: Internet
Author: User
Tags connection pooling

    • DBCP Database Connection Pool

    • C3P0 Database Connection Pool

DBCP is an open source connection pool implementation under the Apache Software fund, and to use the DBCP data source, the application should add the following two jar files to the system:

    • Commons-dbcp.jar: Implementation of connection pooling

    • Commons-pool.jar: Dependency libraries for connection pooling implementations

The connection pool for Tomcat is implemented with this connection pool. The database connection pool can be used either in combination with the application server or independently by the application.

C3P0 is an open source JDBC connection pool that implements data sources and Jndi bindings, and C3P0 data sources are used more in project development.

Jar Package C3p0-0.9.2-pre1.jar, Mchange-commons-0.2.jar,

Difference:

    1. DBCP does not automatically reclaim idle connection functions

    2. C3P0 has automatic recycle idle connection function

Several open-source database connection pools

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.