Hi,
I'am using Hibernate 3.1.3 for for database interaction. I'am using c3p0 for connection pool strategy. I have a problem whenever we stop the database, we get exception, HiberbateException when operating on session objects, like say on session.createQuery() method.
When the database connection is lost, I wish to check the exception if it occurred because of disconnection from database and customize my response. If it is because of disconnection, I wish to reconnect to database. How to know the database connectivity status in Hibernate?
Thanks, Sanjeev Srinath
_________________ Thanks, Sanjeev Srinath
|