I develop an application using Struts, Spring, and Hibernate.
My DAOs uses spring jdbc and all its method throws DataAccessException(that is uncheked).
Where should I handle this exceptions? I know it's an unchecked exception but I think I need to tell the user if there's a problem with the db or it's connection.
I think I should rethrow the DataAccessException from my service class methods to be catched by Controller. Is this a good practice?
I've looked at the samples from Spring package and didn't find any Exception handling in the domain or service area. The DataAccessException seems to be ignored after leaving dao area.
Please suggest a good design for this matter.