Step 3: Deploying the testing and simulation archives

After creating the database resources, you can deploy the testing and simulation archives.

About this task

You deploy the testing.war and DecisionRunner.war archives to use the testing and simulation features. You can apply this procedure to deploy the default archive that is packaged with the installer or any subsequent deployment of a repackaged archive.

You can also deploy the default archive and use it on your rules if you have an XML XOM. The ruleset archive includes an XML XOM inside a RuleApp, so you do not have to repackage the archive to include the XOM.

You must deploy the testing and simulation WARs to the same server as the execution unit (XU). Moreover, for the testing and simulation services to work, the WARs must be installed on the same server and port as the Rule Execution Server console.

If a Rule Execution Server console instance is not deployed on the same server and port, you must implement the IlrSSPResolver interface to set up testing.war. In the resolver, you can use the server name to return a specific server URL.

For DecisionRunner.war, if a Rule Execution Server console instance is not deployed on the same server and port, you must set the RES_URL init parameter on the Decision Runner web application to the Rule Execution Server console that uses the Decision Runner.

Procedure

  1. To deploy testing.war:
    1. Copy the file <InstallDir>/executionserver/applicationservers/tomcat8/testing.war to <CATALINA_HOME>/webapps.
    2. Open the <CATALINA_HOME>/conf/server.xml file.
    3. In the file, add the following XML to declare the context for testing.war just before the tag that closes the localhost definition </Host>:
      <Context path="/testing" 
          docBase="testing.war" 
          debug="0" 
          reloadable="true" 
          crossContext="true">
        <Logger className="org.apache.catalina.logger.FileLogger" 
           prefix="localhost_res_log." 
          suffix=".txt" timestamp="true"/>
        <ResourceLink name="jdbc/resdatasource" 
          global="jdbc/resdatasource" 
          type="javax.sql.DataSource"/>
      </Context> 
    4. Save the file.
  2. To deploy DecisionRunner.war:
    1. Copy the file <InstallDir>/executionserver/applicationservers/tomcat8/DecisionRunner.war to <CATALINA_HOME>/webapps.
    2. Open the <CATALINA_HOME>/conf/server.xml file.
    3. In the file, add the following XML to declare the context for DecisionRunner.war just before the tag that closes the localhost definition </Host>:
      <Context path="/DecisionRunner" 
          docBase="DecisionRunner.war" 
          debug="0" 
          reloadable="true" 
          crossContext="true">
        <Logger className="org.apache.catalina.logger.FileLogger" 
           prefix="localhost_res_log." 
          suffix=".txt" timestamp="true"/>
        <ResourceLink name="jdbc/resdatasource" 
          global="jdbc/resdatasource" 
          type="javax.sql.DataSource"/>
      </Context> 
    4. Save the file.
  3. If necessary, restart Tomcat and the Rule Execution Server console so that the testing and simulation features function correctly.