The javax.ejb Package for Session Beans

Now it is time to add a little more detail. EJBs are written by implementing various interfaces of the javax.ejb package. Some of these are implemented by the bean itself. In other words, this is the code that you, the developer must write. Others are implemented either directly by the EJB container or are implemented by classes generated by the tools provided by your EJB container vendor, such as the J2EE RI.

Figure 5.1 shows a UML class diagram of the interfaces in javax.ejb that support Session beans.

Figure 5.1. The javax.ejb package defines remote and local interfaces, as well as an interface for the Session bean itself to implement.

Central to the EJB architecture are the javax.ejb.EJBHome and javax.ejb.EJBObject ...

Get Sams Teach Yourself J2EE™ in 21 Days 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.