commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phil Steitz" <>
Subject Re: [DBCP] Connection gets blocked on 9th connection.
Date Wed, 08 Aug 2007 00:13:22 GMT

If you want to use BasicDataSource, you need to set the pool
properties using its setters (i.e., using the setters on the
BasicDataSource instance).  It is designed to take care of creating
and managing the underlying pool and PoolingDataSource for you.

Have a look at the examples here:

The BasicDataSourceExample defaults the pool parameters, but
ds.setMaxIdle, etc could be added to the setupDataSource method there
to set those parameters.

The ManualPoolingDataSourceExample shows how to do it if you want to
create the pool yourself and "manually" create the PoolingDataSource
from it.


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

View raw message