Step 3: Creating the DB2 data sources and testing the connection

After you create your JDBC provider, create data sources to abstract the communication with the DB2® database away from the provider. You need data sources for storing RuleApps and Execution Object Models (XOMs).

About this task

If WebSphere® Application Server is used in cluster mode, you must define the data sources at node level in the cluster not at the cluster level. For more information, see Rule Execution Server Deployment on cluster environments

Procedure

  1. In the WebSphere Integrated Solutions Console, open Resources > JDBC > Data sources.
  2. In the Scope side panel, select the scope that you set for the JDBC provider in Step 2: Configuring JDBC.
  3. Click New to create a new data source.
  4. Complete the following steps to create the data source for RuleApps:
    1. In Step 1, enter a name for the data source in the Data source name field and jdbc/ilogDataSource in the JNDI name field, and click Next.
    2. In Step 2, select the JDBC provider that you created in Step 2: Configuring JDBC and click Next.
    3. In Step 3, enter the following specific database properties for the data source:
      • Driver type: 4.
      • Database name: Your database name, for example DSN910GP.
      • Server name: Your DB2 server name.
      • Port number: Your DB2 port number.
    4. Clear the Use this data source in container managed persistence (CMP) option, then click Next.
    5. In Step 4, set up any required security aliases and click Next. For more information, see Step 4: Setting the component and container managed aliases for the data source.

      In Step 5, a summary of the data source is provided.

    6. Click Finish and Save to save the changes to the master configuration.
  5. Complete the following steps to increase the default connection pool size for the data source:
    1. Edit the data source and click Connection pool properties.
    2. Enter the value 30 into the Maximum connections field.
    3. Click OK.
      Note: The default value is 30 but you might require a larger Maximum connections value if your WebSphere Application Server is running many concurrent threads.
  6. Create the data source for Java™ XOMs by repeating Step 4 with the appropriate values. The default name of the XOM data source is jdbc/xomdatasource.
  7. In the side panel, open Resources  > JDBC and click Data sources.
  8. Select the check box next to the data source that you want to test and click Test connection.

    The status of the connection is indicated at the top.