db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <tfisc...@apache.org>
Subject Re: ping \ database availability
Date Sat, 01 Oct 2005 03:58:13 GMT
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


Mime
View raw message