users@glassfish.java.net

auto reconnect to database via JNDI after DB restart

From: apache avro <apache.component_at_gmail.com>
Date: Tue, 25 Jun 2013 15:19:32 -0400

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