To access an EJB’s local interface, define an EJB local reference. Local interfaces are available only to EJB components, Java servlets, and JSPs hosted on the same server as the target component.
Adding an EJB local reference
Display the EJB Local References tab.
Click Add. A reference with default settings is created. Edit the settings as described below.
Editing an EJB local reference
If necessary, display the EJB Local References tab. Existing references are displayed as a list with one row for each reference.
Edit the reference fields of interest as follows:
Name Specifies the JNDI name used in your code to refer to the called
EJB. The aliased name is displayed in the Link Value field. Enter
the part of the JNDI name that begins with ejb/
.
For example, if your code refers to java:comp/env/ejb/MyBean,
enter ejb/MyBeanLocal
.
Type Choose Session for session Beans or Entity for entity Beans.
Home The Java class name of the EJB local home interface, specified
in dot notation. For example, com.sybase.MyBeanLocalHome
.
Local The Java class name of the EJB local interface, specified
in dot notation. For example, com.sybase.MyBeanLocal
.
Link Value The actual JNDI name of the EJB component that is installed in the server where your component or Web application is to be deployed. This is specified by the JNDI Name property in the Component Properties of the called EJB component.
To delete a reference, click anywhere in the fields for the reference of interest and click Delete.
Copyright © 2005. Sybase Inc. All rights reserved. |