Connection pool in Java SE?

It's hard to find a resource on this without finding Java EE, but here is what I'm looking for:

All I have is a standard Java SE application, it makes a lot of database connections. I just need to use the connection pool. Any suggestions?

+3
source share
6 answers

I would suggest c3p0 . There is also this other question that discusses c3p0 vs DBCP and several standalone connection pools.

+5
source

Here are two options that do not require Java EE:

C3P0 - Java SE, Java 6 JDBC. Java 6, , , , .

DBCP - , , JDBC Java 6

+3

BoneCP (http://jolbox.com)? .

+3

javax.sql.DataSource , DB DataSource.

+2

Here is a list of Java connection pool libraries . I just used c3po of them as part of Hibernate, and it still works great (as far as I actually see it ... but I think if I rarely ever notice the pooling software I use, then it works OK, -)

+1
source

Take a look at HikariCP . Even the author of BoneCP admits that he is now the king of the hill.

+1
source

Source: https://habr.com/ru/post/1735793/


All Articles