You can define JNDI bindings, or CMP connection factory
bindings, for EJB 2.x beans.
About this task
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.
Procedure
- Switch to the Java™ EE
perspective.
- In the Enterprise Explorer view, select the desired EJB
module.
- Right click the deployment descriptor, and select .
- On the Overview page of the editor,
in the WebSphere Bindings
section, go to the CMP Connection Factory Binding section.
- Type a JNDI name.
- 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 are available.
- In the JAAS Login Configuration field,
you can 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.