Creating a JDBC provider

To enable Rule Execution Server, you create a JDBC provider in WebSphere® Application Server, as the first step in creating a data source.

About this task

The first step in creating a data source, based on the database that you created in Step 3: Setting up the database, is to create a JDBC provider. You can install the JDBC provider on the cell, node, cluster, or server level. Follow these steps to install a Derby or DB2® JDBC provider at node level.

Note: Some drivers, such as Oracle OCI drivers, need to access additional libraries at run time (.dll or .so files). As a consequence, you must set up your working environment to access these libraries. For example, set the PATH and LD_LIBRARY_PATH environment variables.

Procedure

  1. In the WebSphere Integrated Solutions Console, click Resources > JDBC > JDBC Providers.
  2. Under Scope, select the Node=xxx, Server=yyy, and then click New.

    xxx is the name of your node and yyy the name of your server.s

  3. In Step 1, select the database type, provider type, and an implementation type that supports XA features.
    Table 1. JDBC provider options for DB2 and Derby
    Database type Provider type Implementation type Name
    Derby Derby JDBC Provider XA data source Enter a name, for example Rule Execution Server JDBC Provider
    DB2 DB2 Universal JDBC Driver Provider Connection pool data source Enter, for example, DB2 Universal JDBC Driver Provider for RES
  4. Click Next.
  5. In Step 2, leave the default values and click Next.
  6. Check that the class path to the JAR file of your driver and the implementation class are correct.
  7. Click Finish.
  8. In the next panel, click Save to save the changes to the master configuration.

    If you work in a cluster environment, make sure that the Synchronize changes with Nodes check box is selected.

  9. Restart your server for the changes to be taken into account.
  10. If you work with a DB2 database, the DB2 installation process might have installed the db2jcc_license_cisuz.jar file to a location that is not in the WebSphere Application Server path. In this case, find the db2jcc_license_cisuz.jar file by running the following command.

    Before you run this command, it is best to set yourself as the root user to avoid permissions messages.

    find / -name db2jcc_license_cisuz.jar
  11. From the WebSphere Integrated Solutions Console, open Environment > WebSphere variables and click DB2UNIVERSAL_JDBC_DRIVER_PATH.
  12. Set the value to the path that the find command returned.
  13. Click OK and Save to save the changes to the master configuration.