Configuring your application to use EIM

Configuring authentication settings for your WebFacing application

If you are using the WebFacing Tool, configure authentication settings in the Run Time properties for your project. See Setting authentication options for more information on setting authentication options for WebFacing applications.

  1. To open your WebFacing project properties, right-click the project in the WebFacing Projects view, and select Properties. The host name in the project settings is the system containing the target registry.
  2. Click the Authentication tab to view the authentication settings.
  3. Click the Use single signon radio button.
  4. For this example, check the Specify EIM resource reference field and enter idTokenRR.
    Note: The string idTokenRR can be any string. It is used when mapping this resource reference to the actual adapter name configured in WAS. This string is case sensitive.
  5. Click OK to finish.

Adding a resource reference to the Web Deployment Descriptor

Now update the Web Deployment Descriptor for WebFacing applications.

  1. In the Navigator view, expand the Web project folder and double-click the Web Deployment Descriptor (web.xml) file in the WebContent\WEB-INF folder.
  2. Click the References tab at the bottom of the editor area to configure the resource references.
  3. Click Add and select Resource reference to specify the resource reference for the application.
  4. Click Next.
  5. In this example, type idTokenRR for the resource reference, select javax.jms.ConnectionFactory in the Type field, and select Container from the Authentication list.
  6. Click Finish.
  7. Under WebSphere Bindings, enter eis/idTokenRoot for the JNDI name. This is the name you specified when configuring EIM.
  8. Save and close the Web Deployment Descriptor file.

Feedback