Defining JNDI bindings (CMP connection factory)

You can define JNDI bindings, or CMP connection factory bindings, for EJB 2.x 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 for EJB 2.x beans:

  1. Switch to the J2EE perspective.
  2. In the Project Explorer view, select the desired EJB module.
  3. Right-click on the Deployment Descriptor Editor and select Open With from the pop-up menu.
  4. On the Overview page of the editor, in the WebSphere Bindings section, go to the CMP Connection Factory Binding section.
  5. Type a JNDI name.
  6. 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. If you select the Container option , the JAAS Login Configuration options will be available.
  7. In the JAAS Login Configuration field, you may select
    • Container Managed Authentication (Deprecated).
    • Use Default Method: Supply an Authentication alias.
    • Use Custom Login Configuration: Supply an Authentication alias. With the last option, other properties can also be added.

Feedback