Show TOC Start of Content Area

Procedure documentation Specifying References to Objects Bound in the JNDI  Locate the document in its SAP Library structure

Use

Use this procedure to specify references from your EJB application to the J2EE Engine interface or to service objects bound in the JNDI namespace. By using these references you can look up these objects and use their functions.

Procedure

       1.      Open the ejb-j2ee-engine.xml.

       2.      In the right-hand pane, choose the Enterprise Beans tab.

       3.      Open the corresponding tree structure according to the type of your enterprise bean (session, entity, or message-driven).

       4.      From your bean tree sub-structure, select jndi-mapping.

       5.      Choose Add.

       6.      In the right-hand pane, enter the following data:

Property

Description

Application local JNDI name

The name with which the resource will be looked up. This name is relative to the java:comp/env context.

Server component type

The type of the reference – the value of this element can be service or interface.

Server component JNDI name

The name under which the resource is registered in the JNDI.

Description

An optional description of the reference.

       7.      Declare a class loader reference to the service or interface in your application’s application-j2ee-engine.xml deployment descriptor. For more information, see Editing Application References.

 

 

End of Content Area