Java Database connection pool (BoneCP vs DBPool vs c3p0)

前端 未结 6 1224
春和景丽
春和景丽 2020-12-24 07:12

For a Java app outside of a J2EE container, which connection pool library is the best?

  • I heard c3p0 is getting outdated.
  • Jakarta\'s c
6条回答
  •  暖寄归人
    2020-12-24 08:14

    I was using c3p0 along with DataNucleus/JPA and it was easy to switch to BoneCP. Practically all I had to do is change the DataSource configuration in the Spring context file.

    As far as I saw the BoneCP benchmarks are really good: http://www.databaseskill.com/2282333/, http://jolbox.com/benchmarks.html

提交回复
热议问题