Configuring Rule Execution Server in different environments

According to your development phases, you can set up different Rule Execution Server environments (for example development, QA, and production) in a single cell.

About this task

Most likely, the development of your decision management system requires more than a single deployment of Rule Execution Server. The development lifecycle of a decision service application is similar to any other software development process: It includes stages for implementation, testing, deployment, and maintenance. At the very least, you are likely to need an environment for your development team, one for your QA team, and another one for in-production applications. In the cases where you configure Rule Execution Server in a single cell, it is good practice to isolate the rulesets that you use on each server and ensure that the execution units (XUs) do not interfere with each other.

Procedure

  1. Set up different data sources. For more information, see Step 4: Setting up a data source and connection pool (for the distributed platform) or Step 3: Creating the DB2 data sources and testing the connection (for z/OS).

    You might want to use a different schema for each environment. For more information on the z/OS currentSchema parameter, see Step 5: Setting the currentSchema parameter.

    Use unique JNDI names.

    For example: jdbc/resdatasourceEnv1 and jdbc/resdatasourceEnv2
  2. Deploy a XU for each environment and define a J2C connection factory. For each different environment, repeat the following process:
    1. In the side panel, open Resources > Resource Adapters > J2C connection factories and click the name of the connection factory xu_cf. For detailed steps for deploying one or more XU resource adapters and creating the accompanying connection factories, see Step 7: Deploying the XU RAR.
    2. Modify the JNDI name to eis/XUConnectionFactoryEnv1.
      Remember: The predefined JNDI name is eis/XUConnectionFactory. When you choose a different one, you must modify the execution components that call this XU so that they use this JNDI instead of the predefined one.
    3. Under Additional Properties, click Custom properties.
    4. Click the plugins property.
    5. In the Value field, change xuName=default in the property to xuName=xuEnv1, and then click OK.
    6. Click the persistenceProperties property.
    7. In the Value field, change JNDI_NAME=jdbc/resdatasource to JNDI_NAME=jdbc/resdatasourceEnv1.
    8. Click OK and Save to save the changes to the master configuration.
  3. Deploy the Rule Execution Server console for each environment. For each different environment, repeat the following process:
    1. To modify the deployment descriptor of the Rule Execution Server console EAR file: in the web.xml file, uncomment the JMX_XU_QUERY_PART parameter and specify a unique JNDI name: xuName=xuEnv1.
    2. Deploy the Rule Execution Server console EAR on the server and change the resource reference settings in the application server:
      1. Set the JNDI for the data source to jdbc/resdatasourceEnv1.
      2. Set the JNDI name for the XU to eis/ConnectionFactoryEnv1.

      Make sure to provide a new application name in the "Select installation options" page when you deploy the Rule Execution Server management EAR file.

    3. Set a unique context root for each Rule Execution Server console and adapt the URL accordingly. For example: http://localhost:<PORT_NUMBER>/resEnv1.
  4. Restart the node agents after you complete the configuration.
  5. Call the XU instances to register the XU with the Rule Execution Server console. To do so, request a connection to the execution unit: Manage or run a ruleset, initialize the connection pool, or run diagnostics from the Rule Execution Server console.