commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Graham <grahamdavid1...@yahoo.com>
Subject Re: Using AbandonedObjectPool...
Date Tue, 08 Jul 2003 21:53:57 GMT
--- 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.

David

> Is there some way to recover "active" connections?
> 
> Rodrigo
> 
> ----- Original Message ----- 
> From: "David Graham" <grahamdavid1980@yahoo.com>
> To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
> Sent: Tuesday, July 08, 2003 4:21 PM
> Subject: Re: Using AbandonedObjectPool...
> 
> 
> > FYI, the abandoned functionality in DBCP has been deprecated and will
> be
> > removed in a future release.
> >
> > David
> >
> > --- Rodrigo Reyes <rodrigo@instaservi.com> wrote:
> > > Hi all
> > >     We would like to use the AbandonedObjectPool in DBCP. Still, we
> > > haven't
> > > been able to configure it right. Could someone give us an example of
> how
> > > it
> > > should be configured so the connections which remain iddle for a
> certain
> > > amount of time get recovered? Is there some way to recover a
> connection
> > > if
> > > it remains "active" for too much time? Thanx...
> > >
> > > Rodrigo
> > >
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> > >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-user-help@jakarta.apache.org
> >
> 
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

Mime
View raw message