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?
I would suggest c3p0 . There is also this other question that discusses c3p0 vs DBCP and several standalone connection pools.
Here are two options that do not require Java EE:
C3P0 - Java SE, Java 6 JDBC. Java 6, , , , .
DBCP - , , JDBC Java 6
BoneCP (http://jolbox.com)? .
javax.sql.DataSource , DB DataSource.
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, -)
Take a look at HikariCP . Even the author of BoneCP admits that he is now the king of the hill.
Source: https://habr.com/ru/post/1735793/More articles:WPF - manipulating VisualState from UserControl - c #Why isn't the listShuttle component in richFaces updated? - javaOcaml exception handling for open input channel - matchingIs learning a standard C ++ library a good idea? - c ++Using Valid HTML 4.01 Strictly with Django - html5Как использовать проверку перекрестной проверки с помощью MATLAB? - matlabExplosion analysis error ('-', 'foo-bar') [0] (for example) - phpHow can I scroll through each letter in MS Word using VBA? - ms-wordProblems with jQuery, JSON and Apache - jsonVisual Studio cannot find native tool EntityModelCodeGenerator - asp.net-mvcAll Articles