• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Ramanuj Dev
Greenhorn
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.

Thanks,
Rama
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!