Setting the JNDI name for EJB projects

To set the JNDI name for an EJB project, do as follows:

  1. Right click on ejb-jar.xml (the deployment descriptor) to open the context menu.

  2. Use the EJB Editor to open the following file in the project--
      \ejbModule\META-INF\ejb-jar.xml 

  3. Click on the Beans tab.

  4. On the list, click on the name of the EJB you just generated.

  5. Enter the JNDI name under WebSphere Bindings. The JNDI name must be as follows for use by the EGL run-time code:

    • First character of the program name, in upper case

    • Subsequent characters of the program name, in lower case

    • The letters EJB in upper case.

Related tasks
Setting up the J2EE run-time environment for EGL-generated code