Skip to Main Content
J2EE™ Tutorial, The
book

J2EE™ Tutorial, The

by Stephanie Bodoff, Dale Green, Kim Haase, Eric Jendrock, Monica Pawlan, Beth Stearns
March 2002
Beginner to intermediate content levelBeginner to intermediate
528 pages
10h 12m
English
Addison-Wesley Professional
Content preview from J2EE™ Tutorial, The

The PlayerEJB Code

The PlayerEJB entity bean represents a player in a sports league. Like any entity bean with container-managed persistence, PlayerEJB needs the following code:

  • Entity bean class (PlayerBean)

  • Local home interface (LocalPlayerHome)

  • Local interface (LocalPlayer)

The source code for this example is in the j2eetutorial/examples/src/ejb/cmproster directory. To compile the code, go to the j2eetutorial/examples directory and type ant cmproster.Asample RosterApp.ear file is in the j2eetutorial/examples/ears directory.

Entity Bean Class

For container-managed persistence, the code of the entity bean class must meet the syntax requirements. First, the class must be defined as public and abstract. Also, the class must implement the following: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The J2EE™ Tutorial Second Edition

The J2EE™ Tutorial Second Edition

Stephanie Bodoff, Eric Armstrong, Jennifer Ball, Debbie Bode Carson, Ian Evans, Dale Green, Kim Haase, Eric Jendrock
Sams Teach Yourself J2EE™ in 21 Days

Sams Teach Yourself J2EE™ in 21 Days

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

Sams Teach Yourself J2EE™ in 21 Days, Second Edition

Martin Bond, Dan Haywood, Debbie Law, Andy Longshaw, Peter Roxburgh

Publisher Resources

ISBN: 0201791684Purchase book