commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <si...@ecnetwork.co.nz>
Subject Re: Using AbandonedObjectPool...
Date Tue, 08 Jul 2003 23:08:56 GMT
On Wed, 2003-07-09 at 09:53, David Graham wrote:
> --- Rodrigo Reyes <rodrigo@instaservi.com> wrote:
> > Thanx David...
> > But if this happens, how do I close connections when the system no
> > longer
> > uses them? 
> 
> Your code should always close connections from the pool when it's done
> with them.  Connections also get closed when they're garbage collected so
> if your app stops using the DataSource or gets shut down they will be
> closed.

Note that when you call "close" on a pooled connection, this *returns
the connection to the pool* rather than *closing the connection to the
database*.


Regards,

Simon


Mime
View raw message