Java JDBC connection pool library choice in 2011/2012?

后端 未结 4 2069
日久生厌
日久生厌 2020-11-28 02:17

Which JDBC connection pool library should I use for a new application project (not web application)?

  • Apache DBCP has enough unresolved issues which are pushed
相关标签:
4条回答
  • 2020-11-28 02:28

    You've done good research. I'd say, go ahead with BoneCP. Some years ago I would have suggested c3p0, but it has currently some open and unresolved issues as well. Too bad, actually. The BoneCP author is by the way also active here at SO.

    0 讨论(0)
  • 2020-11-28 02:33

    Another alternative is Vibur DBCP. This is a new, concurrent JDBC connection pool based on Java dynamic proxies. It is fast, has concise source code, supports fairness parameter, JDBC Statement caching, long running SQL queries logging, and many other features.

    Vibur DBCP is available in the central Maven repo, the website shows the needed Maven dependency, various configuration examples (with Spring, Hibernate 3.x/4.x/5.x), and all configuration options.

    Vibur DBCP requires Java 1.7.

    Disclaimer: I'm the author of Vibur DBCP.

    0 讨论(0)
  • It is possible use Tomcat Connection Pool without Tomcat, it is just a couple of .jars that you can include to any software. I have successfully used Tomcat Connection Pool with Resin and Jetty application servers.

    0 讨论(0)
  • 2020-11-28 02:49

    I know its too late for answer but I just found an interesting link which has given a broader scope to answer most your queries. But at the end HikariCP and BoneCP are much better than other options.

    0 讨论(0)
提交回复
热议问题