O'Reilly logo

Special Edition Using Enterprise JavaBeans™ 2.0 by Brian Keeton, Chuck Cavaness

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

Declaring the Home Interface

Every entity or session bean must have a home interface that extends javax.ejb.EJBHome,or a local home interface that extends javax.ejb.EJBLocalHome, or both. The home interface provides factory operations that allow clients to create and remove EJB instances. In the case of entity beans, this interface also allows clients to obtain references to existing entity beans and to execute business methods that aren’t specific to a particular entity object. The methods for removing an entity object are included for you in the declarations of EJBHome and EJBLocalHome, but you’re responsible for declaring your own methods to create and find entities and execute business logic.

Note

The EJB 2.0 Specification uses the term ...

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