commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saeed <>
Subject Re: [DBCP] Getting connections from PoolingDataSource
Date Thu, 10 May 2007 13:45:42 GMT
my comments are in red.

Tushar Madhukar <> wrote:    Hi,

I am using DBCP (PoolingDataSource with GenericObjectPool) for pooling
database connections.

1. My web application can have multiple clients accessing connections
simultaneously. Is PoolingDataSource.getConnection() thread safe or do
I have to handle synchronization?
yes, it is thread safe.
2. How to release all connections in the pool, when the application closes?

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

Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message