aspose file tools*
The moose likes Spring and the fly likes How to handle Error/Exception on multiple database connections with spring and hibernate? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "How to handle Error/Exception on multiple database connections with spring and hibernate?" Watch "How to handle Error/Exception on multiple database connections with spring and hibernate?" New topic
Author

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

Ramanuj Dev
Greenhorn

Joined: Jul 30, 2009
Posts: 5
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
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4642
    
    5

Ramanuj, please BeForthrightWhenCrossPostingToOtherSites
http://www.java-forums.org/spring/64426-how-handle-error-exception-multiple-db-connections-spring-hibernate.html
http://stackoverflow.com/questions/13116893/how-to-handle-error-exception-on-multiple-database-connections-with-spring-and-h
http://forum.springsource.org/showthread.php?131422-How-to-handle-Error-Exception-on-multiple-database-connections-with-spring-and-hibern&p=428693

luck, db
There are no new questions, but there may be new answers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to handle Error/Exception on multiple database connections with spring and hibernate?