Lesson 1.2: Configure the WebSphere Application Server environment

To prepare your environment for the tutorial, you must configure WebSphere® Application Server security. Enable administration and application security using internal file-based federated repositories as a user account registry. Then, you can create server clusters to host the client application and container servers.

About this task

The following steps were written using WebSphere Application Server Version 7.0. However, you can also apply the concepts apply to earlier versions of WebSphere Application Server.

Configure WebSphere Application Server security

Procedure

  1. Configure WebSphere Application Server security.
    1. In the WebSphere Application Server administrative console, click Security > Global Security.
    2. Select Federated repositories as the Available realm definition. Click Set as current.
    3. Click Configure.. to go to the Federated repositories panel.
    4. Enter the Primary administrative user name, for example, admin. Click Apply.
    5. When prompted, enter the administrative user password and click OK. Save your changes.
    6. On the Global Security page, verify that Federated repositories setting is set to the current user account registry.
    7. Select the following items: Enable administrative security, Enable application security, and Use Java 2 security to restrict application access to local resources. Click Apply and save your changes.
    8. Restart the deployment manager and any running application servers.
    The WebSphere Application Server administrative security is enabled using the internal file-based federated repositories as the user account registry.
  2. Create two user groups: adminGroup and operatorGroup.
    1. Click Users and groups > Manage groups > Create...
    2. Type adminGroup as the group name. Enter Administration group as the description. Click Create.
    3. Click Create alike. Type operatorGroup as the group name. Enter Operator group as the description. Click Create.
    4. Click Close.
  3. Create users admin1 and operator1.
    1. Click Users and groups > Manage users > Create...
    2. Create a user called admin1 with the first name Joe and last name Doe with the password admin1. Click Create.
    3. Create a second user. Click Create alike to create a a user called operator1 with the first name Jane and last name Doe with the password operator1. Click Create. Click Close.
  4. Add users to the user groups. Add the admin1 user to the adminGroup and the operator1 user to the operatorGroup.
    1. Click Users and groups > Manage users.
    2. Search for users to add to groups. Click Search.. and set the search for value to an asterisk (*) to display all the users.
    3. From the search result, click the admin1 user, and click the Groups tab. Click Add to add the group.
    4. Search the groups to find the available groups. Click the adminGroup and click Add.
    5. Repeat these steps to add the operator1 user to the operatorGroup user group.
  5. Save your changes, log out of the administrative console, and restart the deployment manager and node agent to enable the security settings.

Results

You enabled security and created users and user groups have administrative and operator access to your WebSphere Application Server configuration.

Create server clusters

Create two server clusters in your WebSphere Application Server configuration: The appCluster cluster to host the sample application for the tutorial and the xsCluster cluster to host the data grid.

Procedure

  1. In the WebSphere Application Server administrative console, open the clusters panel.
    Click Servers > Clusters > WebSphere application server clusters > New.
  2. Type appCluster as the cluster name, leave the Prefer local option selected, and click Next.
  3. Create servers in the cluster.
    Create a server named s1, keeping the default options. Add an additional cluster member named s2.
  4. Complete the remaining steps in the wizard to create the cluster. Save the changes.
  5. Repeat these steps to create the xsCluster cluster. This cluster has two servers, named xs1 and xs2.

Lesson checkpoint

You enabled global security for the WebSphere Application Server cell, created users and user groups, and created clusters to host the application and data grid.