Hello All,
My apps design has the following layer:
JSF(front-end) -> Business Delegates (POJO) -> EJB3 (Session Facade) -> POJO (DAO) -> Hibernate --> DB. Now i am little confused for exception handeling. I have following approaches in mind.
1- Propogate my exceptions from Hibernate all the way to business delegates and handel all of them there. I am not sure this will be a good approach. But it will allow my to have one place to handel all exception.
2- Handel exception at differnet levels. DB related expceptions IN Daos, Logic and
EJB related exceptions in Bussiness Delegates.
Please suggest me better of these or purpose a new suggestion.
Thanks