Follow these steps to bind an enterprise bean local reference (or
nickname) to a Java Naming and Directory Interface (JNDI) name.
Procedure
- Start the Application Server Toolkit.
- Optional: Open the J2EE perspective to work with J2EE
projects. Click Window > Open Perspective > Other > J2EE.
- In the J2EE view, select the EJB module to open its deployment
descriptor.
- Switch to the References page.
- Expand the tree under your chosen bean and select the appropriate
reference.
- In the WebSphere bindings section, specify the JNDI name.
- Repeat these steps for all the references in the EJB module.
- Save the deployment descriptor.
Note: Reference
bindings can be defined or overridden at deployment time in the administrative
console for all modules except for application clients. For those, you must
use the Application Server Toolkit.