How to establish a connection pool in JDBC?

前端 未结 13 2677
一个人的身影
一个人的身影 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:07

    Apache Commons has a library for that purpose: DBCP. Unless you have strange requirements around your pools, I'd use a library as it's bound to be trickier and more subtle than you would hope.

提交回复
热议问题