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. 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 to implement.

Central to the EJB architecture are the javax.ejb.EJBHome and javax.ejb.EJBObject interfaces, common to both Session beans and Entity beans. These both extend the java.rmi.Remote interface, which means that the classes that implement them (not ...

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