To access a local interface for an EJB, 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
To add an EJB local reference:
Select web.xml in the WorkSpace Navigator of the Web Application Development perspective.
The web.xml editor opens,
Select the EJB tab of the editor.
EJB References and EJB Local References sections appear.
Expand EJB Local References.
A list of defined local references is displayed.
To add a new reference, click Add.
General Information displays to the right of the EJB Local References section.
Change the default EJB name in the Name field of the General Information section.
The 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, type ejb/MyBeanLocal.
(Optional) Type a link in the Link field.
Click the arrow in theType field to open the drop-down list and select either Entity for entity beans or Session for session beans.
Click Browse adjacent to the Local home field and select the Java class name of the EJB home interface, specified in dot notation
Example: com.sybase.MyBeanLocalHome.
Click Browse adjacent to the Local field and select the Java class name of the EJB local interface, specified in dot notation.
Example: com.sybase.MyBeanLocal.
(Optional) Type a description of the EJB reference.
(EAServer Only) If you are using EAServer, in the WorkSpace Navigator, expand webroot, expand META-INF, and select sybase-easerver-config.xml.
You must modify this file to 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.
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com