The Need for EJB

People have been writing three-tiered database applications for years now and they usually end up trying to solve the same problems over and over. As you saw back in Chapter 1, "Application Architecture Concepts," the basic structure of a three-tiered application consists of a presentation layer, a business logic layer, and a data layer. In a typical business application, you use a database for the data layer and either a GUI front-end or a Web server for the presentation layer.

The business logic layer is traditionally the most difficult to design. You must figure out how your code will interact with the database and with the clients. How you interact with the clients often dictates how you will interact with the database.

Get Special Edition Using Java™ 2 Enterprise Edition 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.