Pool Pooling Pool

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.

+1
source share
1 answer

You can use some libraries. For a JDBC connection pool, check , or . If you need a shared pool, see the shared pool that dbcp has built.

+5
source

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


All Articles