O'Reilly logo

Web Technology: Theory and Practice by M. Srinivasan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7.5 EJB COMPONENTS

Just as Servlets run in a Servlet Container, EJBs run in an EJB container. The container itself could be either standalone or a part of an (Java EE) Application server. There are three types of EJBs—Session Beans, Entity Beans and Message driven Beans. A Bean, in general EJB parlance, is a component, but different from Java Beans. They are classified into these categories as per their specific functionalities they intend to achieve. Session Beans and Message driven Beans drive business logic (in slightly different ways) and Entity Beans manage persistence. Persistence can be achieved in different ways, but Java uses JPA (Java Persistence API) to deal with persistence, through the EntityManager interface. Most EJB containers ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required