I have a three-tier application with Glassfish 3.1.2.2, a MySQL database and a Swing client application. How can I deal with a database server failure?
I tried to stop the MySQL service while my application was running. Then I get javax.ejb.EJBAccessException exceptions every time I try to access the database through one of my beans facade sessions.
I want to notify the user that the database is currently unavailable. In addition, I want to install my application as a "sleep mode" until the database is started and restarted.
What would be a good (and possibly simple) approach for handling such a scenario?
Thanks for your help in advance!
java mysql exception glassfish
salocinx
source share