For each EJB reference that is defined in either an ejb-jar.xml file, a web.xml file, or an @EJB annotation in the composition unit, you can specify the JNDI name by which the EJB reference is known in the runtime environment.
This panel shows one row of information for each EJB reference. The final column, EJB Reference JNDI Name, specifies the JNDI name to which the EJB reference is mapped.
If a JNDI name mapping for an EJB reference is defined in either an ibm-ejb-jar-bnd.xml file or an ibm-web-bnd.xml file in the bundle, the corresponding JNDI name is displayed in the EJB Reference JNDI Name column for that EJB reference, otherwise the column is empty. You can modify any existing mappings, and specify new ones, as required, by entering the appropriate values in the EJB Reference JNDI Name column.
Location of EJB reference | URI syntax | Examples |
---|---|---|
ejb-jar.xml file | Path to the file, followed by the name of the enterprise bean from which the reference is defined. | META-INF/ejb-jar.xml/CustomerDetails or WEB-INF/ejb-jar.xml/CustomerDetails |
web.xml file | Path to the file. | WEB-INF/web.xml |
@EJB annotation in an enterprise bean | Path to the ejb-jar.xml file that contains the definition of the enterprise bean in which the @EJB annotation is declared, followed by the name of the enterprise bean. | META-INF/ejb-jar.xml/CustomerDetails or WEB-INF/ejb-jar.xml/CustomerDetails |
@EJB annotation in a servlet | Path to the web.xml file that contains the definition of the servlet in which the @EJB annotation is declared. | WEB-INF/web.xml |