You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Ferruh Zamangoer <fe...@gmx.de> on 2005/09/21 12:46:46 UTC
ping \ database availability
Hi,
is in Torque any method to ping an database server to check a database
availability?
Regards
Ferruh
Re: ping \ database availability
Posted by Thomas Fischer <tf...@apache.org>.
Not any that I know of. If you set up dbcp as to test database connections
before it hands them out (using a command similar to "SELECT 1"), then you
can use Torque.getConnection(), and see if you get an exception thrown.
Note that this command can take quite long if any firewall bettween db
cliean and db server acts as a black hole if the db is not available. But
there might be another dbcp property to configure a timeout.
Thomas
On Wed, 21 Sep 2005, Ferruh Zamangoer wrote:
> Hi,
>
>
>
> is in Torque any method to ping an database server to check a database
> availability?
>
>
>
> Regards
>
> Ferruh
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org