How to handle Error/Exception on multiple database connections with spring and hibernate?
posted 3 years ago
I am using spring and hibernate to work on multiple database server save,update simultaneously using 2 datasource configuration.
I am using
class for creating datasource.
If both the database server up/running then it's work fine.
If I close one of my database server and trying to catch the exception then it's not coming in catch block
and the stack trace error displaying on my web browser.
How can I handle this exception.
I want to display in my GUI that one of my db server is down If any of my db server is down.