Database connection pool design

T

Tivo Escobar

Hi all,

I am designing a connection pool for a particular application: in the
startup, this application requires a lot of connections, but after a
few moments it will use just a few. I wanted a pool that closed the
connections that are not used for a long time.

Do you know any implementation like that? What would be the best
approach?

Thanks in advance,

Tivo
 
G

G Winstanley

Take a look at DBPool:
http://www.snaq.net/java/DBPool/
It can be easily configured to expire unused connections after a certain
time, which seems to fit your requirements. The source code is available to
look at if you decide you want to still write you own.

Stan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top