Before you start
This tutorial is the first in a two-part series about components within IBM® Rational® Software Architect that are dedicated to the following tasks:
- Automatic detection of bad design in your code
- Support (and sometimes automated enforcement) of coding standards
Both tutorials in the series take the same flawed Java™ 2 Platform, Enterprise Edition (J2EE) application as their starting point. This first tutorial subjects the application to analysis by the Code Review tools in Rational Software Architect. The second tutorial in the series uses the architectural discovery tools to expose design flaws and features in a visual way.
Anybody involved with the design of Java or J2EE applications -- architect, designer, or developer -- has a stake in the code review and architectural discovery tools. Both tutorials show you how to use the tools to help assure the quality of the designs and code under your control.
This first tutorial focuses exclusively on Code Review. As well as using Code Review to expose coding and design flaws, you also learn how to make corrections (often automatically with the Quick Fix feature) and have the opportunity to re-run code reviews and see the feature's findings diminish.
Some familiarity with Java and J2EE programming is assumed. This tutorial does involve some optional programming elements. However, the main focus is on showing how you can use Rational Software Architect to identify and diagnose bad design techniques.
This tutorial is complementary to two tutorials -- "Running a Code Review" and "Running a Structural Analysis Code Review" -- already built into Rational Software Architect. These tutorials are excellent for gaining familiarity with the products, and the second one in particular covers areas not covered in this tutorial (and vice versa). However, it isn't necessary to take those tutorials before this one. See the Resources section for more information on how to access these additional tutorials included with Rational Software Architect.
To complete the steps in this tutorial, you need:
- Rational Software Architect. Download a trial version at no cost. Rational Software Architect runs on Linux™ and recent Microsoft® Windows® platforms. Check the system requirements link from the download page for detailed information.
- AntiPatternWeb1.zip. Download this file, which contains the Web archive (WAR) file with the sample application used in this tutorial.


