commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Botelho, Mauro" <>
Subject RE: [dbcp] Minimum Number of Connections Open
Date Wed, 30 Jul 2003 02:19:33 GMT
If there's any interest in adding this functionality, I'll code it and contribute it.


-----Original Message-----
From: Rodney Waldhoff []
Sent: Tuesday, July 29, 2003 8:02 PM
To: Jakarta Commons Users List
Subject: Re: [dbcp] Minimum Number of Connections Open

No, not currently.

You can open a number of connections on application startup like this:

Connection[] conns = new Connection[SIZE];
for(int i=0;i<conns.length;i++) {
  conns[i] = DriverManager.getConnection(uri);
for(int i=0;i<conns.length;i++) {

but depending upon your configuration, the pool may close all of those
connections if they sit idle long enough.

- Rod <>

On Fri, 25 Jul 2003, Botelho, Mauro wrote:

> I'm starting to use dbcp, and would like to know if there's a way to keep a minimum number
of connections open.
> Mauro

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message