How to detect when a connection times out ?

From: Leny (leny00004_at_hotmail.com)
Date: 08/25/04


Date: 25 Aug 2004 05:46:23 -0700

Hi,

    I'm looking for a standar way to know when a connection has been
timed out.
    Right now, I found the following solutions:

        - Make a query and check out the result. If it's an exception,
reopen the connection.
        - Just check every exception for every query.

     Well, as you can see they are far from ideal solutions. I just
can't check the isClosed() because it only returns true when the
*client* closes the connection.

     Do you know any way to know if the connection is active ? Any
comments would be really welcome.

     Thanks in advance,

          - Leny