Setting the JNDI name for EJB projects
To set the JNDI name for an EJB project, do as follows:
- Right click on ejb-jar.xml (the deployment descriptor) to open the context menu.
- Use the EJB Editor to open the following file in the project--
\ejbModule\META-INF\ejb-jar.xml- Click on the Beans tab.
- On the list, click on the name of the EJB you just generated.
- 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