Define JNDI bindings (CMP connection factory)

You can define JNDI bindings, or CMP connection factory bindings, for EJB 2.0 beans.

The CMP factory connection binding is a setting specific to WebSphere Application Server. See the WebSphere Application Server documentation for more detailed information about component-managed authentication and container-managed authentication.

To define CMP connection factory bindings:

  1. Switch to the J2EE perspective.

  2. In the Project Explorer view, right-click the desired EJB 2.0 module, and select Open With > Deployment Descriptor Editor from the pop-up menu.

  3. On the Overview page of the editor, in the WebSphere Bindings section, go to the CMP Connection Factory Binding section.

  4. Type a JNDI name.

  5. Select one of the following container authentication types:

    • Per_Connection_Factory - Select this option for component-managed authentication.

    • Container - Select this option for container-managed authentication.