Configuring WebShpere Application Server

To configure WebShpere Application Server, do the following steps:
  1. Create J2C Authentication Data for DB2®:
    1. From the WebSphere® Application Server Administration Console, select Security > Secure administration, applications, and infrastructure > Java Authentication and Authorization Service > J2C Authentication Data.
    2. Click New, and access DB2 with the username and password. This creates the J2C Authentication Data Entry for DB2.
  2. Create JDBC Providers:

    From the WebSphere Application Server Administration Console, select Resources > JDBC Providers to create a new user-defined JDBC provider (The environment variable DB2_JDBC_DRIVER_PATH must have a correct value).

  3. Create a Data Source for the JDBC provider and enter the following properties:
    • JNDI Name: the default value is jdbc/DEMO;
    • Component-managed Authentication Alias: select the Authentication Alias created in step 1;
    • Container-managed Authentication Alias: select the Authentication Alias created in step 1;
    • DatabaseName and serverName for the Data Source.
  4. Restart the WebSphere Application Server.