Please let me know as soon as possible how to implement error handling (mainly Data Base Related errors) effectively.
I want to write all the exceptions in one java class and I want to use this in all the ejbs where ever it is required.
Please let me know the apporch as soon as possible
I will be happy if U can send the comments to my mail firstname.lastname@example.org
You can do error handling effectivley in EJBs. You can "catch" SQLException for database related errors, and throw them back to the front end, to be caught there. You can form an error code logic, and can store all the errors in a database table, or a text file. And you can write a class, or even a Session Bean(for DB) to get theses error messages.
You can use the JSPs default error page to display these errors, or can make an Error jsp to be included in all pages to lookup the error bean or class in case of errors, and fetch text for error codes.
Hope this helps.
Please help me.
I am facing problem in handling error page in jsp