EJB Properties

The EJB tab in the component property sheet provides additional properties.

Property

Description

Remote home interface

Defines methods and operations used in a remote client view. Extends the javax.ejb.EJBHome interface

Remote interface

Provides the remote client view. Extends the javax.ejb.EJBObject interface

Local home interface

Defines methods and operations used locally in a local client view. Extends the javax.ejb.EJBLocal-Home interface

Local interface

Allows beans to be tightly coupled with their clients and to be directly accessed. Extends the javax.ejb.EJBLocalObject interface

Bean class

Class implementing the bean business methods

Primary key class

Class providing a pointer into the database. It is linked to the Bean class. Only applicable to entity beans

Note:

You can open the EJB page by right clicking the EJB component symbol, and selecting EJB.

For more information on interface methods and implementation methods, see Understanding operation synchronization.

Previewing the Component Code

You can see the relation between an EJB and its classes and interfaces from the Preview tab without generating any file. To preview the code of an EJB, click the Preview tab in the component property sheet (see Previewing Object Code). The various sub-tabs show the code for each interface and class of the EJB. In the model or package property sheet, the Preview page describes the EJB deployment descriptor file with the name of the generated EJB and its methods.