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 Entity Beans

Yesterday, you saw the interfaces and classes in the javax.ejb package that related to Session beans. Figure 6.2 shows the interfaces and classes relevant to Entity beans.

Figure 6.2. The javax.ejb interfaces and classes pertaining to Entity beans.

As you can see, many of the supporting classes are common, which is good news because that means there's less to learn. The principle differences are as follows:

  • The Entity bean implements javax.ejb.EntityBean rather than javax.ejb.SessionBean, so there is a different lifecycle.

  • The Entity bean is initialized with an EntityContext rather than a SessionContext. An ...

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