DBCP: Recovering all Connections

View: New views
3 Messages — Rating Filter:   Alert me  

DBCP: Recovering all Connections

by Patrick Lightbody-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: user-help@...


Re: DBCP: Recovering all Connections

by markt-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
For additional commands, e-mail: user-help@...


Re: DBCP: Recovering all Connections

by Patrick Lightbody-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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<markt@...> 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@...
> For additional commands, e-mail: user-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...