• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to handle Error/Exception on multiple database connections with spring and hibernate?  RSS feed

Ramanuj Dev
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

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.

Stack Trace:

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.

Please help on this.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!