Java Mailing List Archive

http://www.dba.5341.com/

Home » Home (12/2007) » oracle l »

detect connection problems

Johan Eriksson

2006-05-23

Replies:

Hi all

A developer asked me a question I couldn't give any answer to.
Our application connect through a connection pool (hibernate) to the database and the application should shut down if it can't create a connection to db or if the connection is lost, all other failures should not shut down but just give the error.

How could you catch only these messages? To figure out all possible ora errors and have logic for these doesn't seem like a good idea. Anyone that has done something similiar?

/Johan
©2008 dba.5341.com - Jax Systems, LLC, U.S.A.