On 8/19/05, Hiller, Frank RD-AS2 <[EMAIL PROTECTED]> wrote:

> how can one check via OJB whether the database is avaialable before
> establishing a connection to it?

I think that in JDBC you'd have to try to establish a connection to it
and if that fails, then likely the database is not available (for
whatever reason). AFAIK there is no other generic way (though
individual databases may provide other means).
Since OJB builds upon JDBC, you probably got to try to establish a
connection and execute the query that you've defined as the keep-alive
query, and see whether this is possible.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to