DBCP: Recovering all Connections

3 messages Options
Embed this post
Permalink
Patrick Lightbody-4

DBCP: Recovering all Connections

Reply Threaded More More options
Print post
Permalink
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: [hidden email]
For additional commands, e-mail: [hidden email]

Mark Thomas

Re: DBCP: Recovering all Connections

Reply Threaded More More options
Print post
Permalink
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: [hidden email]
For additional commands, e-mail: [hidden email]

Patrick Lightbody-4

Re: DBCP: Recovering all Connections

Reply Threaded More More options
Print post
Permalink
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<[hidden email]> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]