Enterprise JavaBeans: The J2EE Solution

The J2EE solution for serving application logic is Enterprise JavaBeans (EJBs). As described earlier, a J2EE Web application can comprise up to four distinct types of container: an application client container, an applet container, a Web container, and an EJB container. EJB containers and the objects they manage are our focus here. An EJB container consists of one or more EJBs that contain the core business logic for an application.

Unlike Java servlets, which are fundamentally associated with J2EE Web containers, EJBs represent a more flexible and presentation-neutral location for business logic. They can be contacted directly by servlets, by applet containers, or by the Java Message Service (JMS). In ...

Get Building Scalable and High-Performance Java™ Web Applications Using J2EE™ Technology 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.