Creating a data source and connection pool

Create a connection pool and a data source in WebSphere® Application Server to enable Rule Execution Server.

Procedure

  1. In the WebSphere Integrated Solutions Console, open Resources  > JDBC > Data sources.
  2. Under Scope, select the scope that you selected for the JDBC provider in Creating a JDBC provider and click New.
  3. In Step 1, enter the data source and JNDI names, and then click Next.
    • For Derby databases: Rule Execution Server datasource and jdbc/resdatasource
    • For DB2®: resdatasource and jdbc/resdatasource.
  4. In Step 2, choose Select an existing JDBC provider, select the JDBC provider that you created in Creating a JDBC provider, and click Next.
  5. In Step 3, enter the specific database properties for the data source.
    The following table shows the minimum set of properties to define the supported databases. If the table does not include your driver, check the WebSphere Application Server documentation for more information.
    Database Properties
    DB2 Universal JDBC Driver
    • databaseName: Database name if driverType is set to 4, or a locally cataloged database name if driverType is set to 2, for example DSN910GP.
    • driverType: 2 or 4
    If you are working on WebSphere Application Server on Linux for z Systems™, set the driverType to 4. When the driverType is 4, set the following properties:
    • serverName: TCP/IP address or host name
    • portNumber: TCP/IP port number
    DB2 legacy CLI-based Type 2 databaseName: for example, Sample.
    Oracle JDBC Driver URL: for example, jdbc:oracle:oci:@sample
    Derby databaseName: path to the location of the database files. This directory must not exist already. For example, c:\resdb.

    For more information, refer to the Derby documentation.

  6. Clear the Use this data source in container managed persistence (CMP) option.
  7. Click Next.
  8. In Step 4, set up any necessary security aliases and then click Next. For DB2, select the DB2 administrator's authentication alias from the Component-managed authentication alias option.
  9. Click Finish.
  10. In the next panel, click Save to save the changes to the master configuration.