3.5. Design Guidelines and Patterns

Even though the Loan EJB is a simple example, it adheres to basic design guidelines common to all enterprise applications. Most importantly, the business methods of an enterprise Java bean are encapsulated into a reusable, distributed component. The business methods perform tasks to accomplish one or more business processes. These business methods are devoid of any formatting or presentation information.

We showed you the Loan EJB's reusability by presenting two different clients: a stand-alone Java application with a simple command-line interface and a JSP client using a browser with HTML. Both clients call EJB business methods and perform the formatting and presentation aspects of the application.

To further ...

Get Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.