Connection pooling options with JDBC: DBCP vs C3P0

前端 未结 16 1870
遥遥无期
遥遥无期 2020-11-22 06:17

What is the best connection pooling library available for Java/JDBC?

I\'m considering the 2 main candidates (free / open-source):

  • Apache DBCP - http:/
16条回答
  •  礼貌的吻别
    2020-11-22 06:54

    We came across a situation where we needed to introduce connection pool and we had 4 options in front of us.

    • DBCP2
    • C3P0
    • Tomcat JDBC
    • HikariCP

    We carried out some tests and comparison based on our criteria and decided to go for HikariCP. Read this article which explains why we chose HikariCP.

提交回复
热议问题