Hello All,
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 srinivas.reddy@four-soft.com
Thanks
BSREDDY
-
HOW TO HADLE DATA BASE EXCEPTIONS EFFECTIVELY (2 messages)
- Posted by: Srinivas Reddy Bijjam
- Posted on: May 31 2001 04:49 EDT
Threaded Messages (2)
- HOW TO HADLE DATA BASE EXCEPTIONS EFFECTIVELY by Sumeet Puri on May 31 2001 06:43 EDT
- How to include JSp error page by debabrata mishra on May 31 2001 09:40 EDT
-
HOW TO HADLE DATA BASE EXCEPTIONS EFFECTIVELY[ Go to top ]
- Posted by: Sumeet Puri
- Posted on: May 31 2001 06:43 EDT
- in response to Srinivas Reddy Bijjam
Hi Srinivas!
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. -
How to include JSp error page[ Go to top ]
- Posted by: debabrata mishra
- Posted on: May 31 2001 09:40 EDT
- in response to Sumeet Puri
Please help me.
I am facing problem in handling error page in jsp
Regards
debu