commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tatu Vanhanen" <tatu.vanha...@graftor.fi>
Subject RE: DBCP
Date Thu, 05 Feb 2004 13:14:47 GMT

> Im new to using this form of connection pooling.
> I want to know how to release connections back to the pool.

By calling the close()- method of the connection ;)

The connection instance retrieved from the pool is actually a pooled
connection that puts itself back to the pool when close() is called.

But remember to close the connection in a finally- block to ensure the
connection is always put back to the pool, no matter what.

- Tatu V.


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


Mime
View raw message