How can I implement connection pooling in Java?
Is there some kind of template?
I have to use some connections and free them. This connection should be closed a few times.
You can use some libraries. For a JDBC connection pool, check bonecp , c3p0, or dbcp . If you need a shared pool, see the shared pool that dbcp has built.
Source: https://habr.com/ru/post/1481428/More articles:-webkit-user-select: none; - does not work - htmljQuery UI Button Radio hard to choose Long mouse clicks - jqueryDataGridDragDropTarget: change icon based on target target - c #Redis: How to access keys in a specific key space - redissharing a JDBC connection object between other objects - javaDjango Haystack and Tagit - djangoHow can I use invoke-sqlcmd without including named pipes? - sql-serverWhich __bridge free bridge should be used to create the Objective-C convenience constructor in C ref? - objective-cAndroid emulator plugin does not find Android SDK - jenkinsConsole - requirejsAll Articles