You'll need to use a ping query to make sure that the
connection is valid.
Something like this:
http://w
ww.mail-archive.com/ibatis-user-java incubator.apache.org/msg02651.html
Larry
On 10/25/06, Dorin Manoli <Dorin.Manoli dataireland.ie> wrote:
>
>
>
>
> Hi ALL! I'm wondering if is there any way to see if a
connection is active
> or not (didn't found in docs), because I got exceptions
when I loose DB
> connection and have to reconnect.
>
> Need a nice way to do that, not catching exceptions.
|