O'Reilly logo

Sams Teach Yourself J2EE™ in 21 Days by Peter Roxburgh, Andy Longshaw, Debbie Law, Dan Haywood, Martin Bond

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

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

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