commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <dan...@etrak-plus.com>
Subject Re: DBCP
Date Thu, 05 Feb 2004 13:36:16 GMT
thanks.
so i should not set the connection to null after calling close?

thanks,
Daniel
Schulken
----- Original Message ----- 
From: "Tatu Vanhanen" <tatu.vanhanen@graftor.fi>
To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
Sent: Thursday, February 05, 2004 8:14 AM
Subject: RE: DBCP


> 
> > 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
> 
> 


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004

---------------------------------------------------------------------
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