How to establish a connection pool in JDBC?

前端 未结 13 2675
一个人的身影
一个人的身影 2020-11-22 02:43

Can anybody provide examples or links on how to establish a JDBC connection pool?

From searching google I see many different ways of doing this and it is rather conf

13条回答
  •  终归单人心
    2020-11-22 03:01

    MiniConnectionPoolManager is a one-java-file implementation, if you're looking for an embeddable solution and are not too concerned about performances (though I haven't tested it in that regard).

    It is multi-licensed EPL, LGPL and MPL.

    Its documentation also gives alternatives worth checking (on top of DBCP and C3P0):

    • Proxool
    • BoneCP
    • Tomcat JDBC Connection Pool

提交回复
热议问题