commons-user mailing list archives

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

Tushar Madhukar <tushar.madhukar@gmail.com> 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?
conn.close();
  
Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org




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