Friday, January 13, 2006

ONJava.com: An Exception Handling Framework for J2EE Applications

ONJava.com: An Exception Handling Framework for J2EE Applications: "An Exception Handling Framework for J2EE Applications
by ShriKant Vashishtha
01/11/2006

In most Java projects, a large percentage of the code is boilerplate code. Exception handling comes under this category. Even though the business logic may be just three or four lines of code, exception handling might go on for ten to 20 lines. This article talks about how to keep exception handling simple and straightforward, keeping the developer's plate clean for him to concentrate on business logic rather than devoting time to writing exception-handling boilerplate code. It also gives the basis and guidelines to create and deal with exceptions in the J2EE environment and targets some of the business problems, in which exceptions could be used to resolve them. This article uses the Struts framework as the presentation implementation, though the approach is applicable to any presentation implementation."

No comments: