You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Patrick Lightbody <pa...@browsermob.com> on 2009/06/24 16:54:50 UTC
DBCP: Recovering all Connections
I have a somewhat unique use case: I want to be able to, on command,
tell my BasicDataSource to "recover" any outstanding open Connections.
I don't see any methods in the API that indicate there is a way to
force that. There are timeouts that will recover it, but is there a
way to say: "do it now"?
Patrick
--
On-demand, low-cost load testing using real browsers
http://browsermob.com
Patrick Lightbody
Founder, BrowserMob
+1 (415) 830-5488
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: DBCP: Recovering all Connections
Posted by Patrick Lightbody <pa...@browsermob.com>.
Mark,
Thanks. I guess I'll just wrap it myself, no big deal.
Patrick
On Wed, Jun 24, 2009 at 9:05 AM, Mark Thomas<ma...@apache.org> wrote:
> Patrick Lightbody wrote:
>> I have a somewhat unique use case: I want to be able to, on command,
>> tell my BasicDataSource to "recover" any outstanding open Connections.
>> I don't see any methods in the API that indicate there is a way to
>> force that. There are timeouts that will recover it, but is there a
>> way to say: "do it now"?
>
> In short, no. Depending on configuration, DBCP might not even be holding
> references to the open connections.
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
Re: DBCP: Recovering all Connections
Posted by Mark Thomas <ma...@apache.org>.
Patrick Lightbody wrote:
> I have a somewhat unique use case: I want to be able to, on command,
> tell my BasicDataSource to "recover" any outstanding open Connections.
> I don't see any methods in the API that indicate there is a way to
> force that. There are timeouts that will recover it, but is there a
> way to say: "do it now"?
In short, no. Depending on configuration, DBCP might not even be holding
references to the open connections.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org