users@glassfish.java.net

Re: auto reconnect to database via JNDI after DB restart

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Tue, 25 Jun 2013 13:10:23 -0700

Connection validation should help.

-marina

On 6/25/13 12:19 PM, apache avro wrote:
> Hello All,
> I have an application that uses JNDI to interact with postgresql.
> Whenever, there is a DB server restart, unless I restart glassfish I'm
> unable to interact with my DB. My efforts to use fail-all-connections,
> is-connection-validation-required and other attributes were futile.
>
> Please suggest a way to get my application to work with database
> without having to restart glassfish whenever I restart database server.
>
> Thank You
> Max