Setting up the automated ruleset management sample

You install the sample on an application server.

About this task

Procedure

To set up the sample:

If you use the sample server, follow these instructions:
  1. In Rule Designer, switch to the Samples Console perspective.
  2. Start the sample server from the Sample Server view.
  3. After the server starts, click the Rule Execution Server console link in the Operational Decision Manager Sample Server view. The console opens on http://localhost:<PORT>/res.
  4. Log in to the console by using resAdmin as the user name and password.
  5. Click the Explorer tab to display the RuleApp archives that are in the console. The archives are empty if you have not run a tutorial or sample.

If you do not use the sample server, follow these instructions to install the sample on another type of application server:

  1. To deploy Rule Execution Server, refer to the appropriate configuration guide (see Configuring).
  2. If you use WebSphere Application server, complete the sample property files as follows:
    1. Open <InstallDir>/executionserver/samples/jmxremote/websphere<version_number>/build.properties.
    2. Set was.home to the directory where WAS is installed.
    3. Set profile.name to the profile name.
    4. Check that was.jdk.home point to the JDK that is used by the application server. You must use the same JDK version to compile the code. Check the JDK that is used by Rule Designer.
    5. Check that the server.host, server.port, and soap.connector.port values are correct.
    6. Set the user name and password to the one for accessing the Rule Execution Server console (resAdmin).
  3. If you use WebLogic Server, the server.user and server.password properties that are defined in the build.properties file must be for a WebLogic Server user profile that is defined in the WebLogic Server environment.

    Under environment/servers/<your_domain_AdminServer_instance>/protocols/IIOP, set the following properties:

    1. Enable IIOP.
    2. Enter your IIOP user name.
    3. Enter your IIOP password.
    4. Confirm your IIOP password.

    Open <InstallDir>/executionserver/samples/jmxremote/weblogic<version_number>/build.properties, and configure the sample property files as follows:

    WL_HOME=${env.WL_HOME}
    By default, the variable is set to your WL_HOME environment variable.    
    server.url=t3://localhost:7001 
    Specifies the URL where the Rule Execution Server console is deployed.    
    server.user=resAdmin
    Sets the user login.
    server.password=resAdmin
    Sets the user password.
  4. If you use the Tomcat application server, you must enable a remote JMX listener (see JMX Remote Lifecycle Listener). Do the following steps:
    1. Stop the Tomcat application server.
    2. Download the JMX remote JAR file from Apache Tomcat, and place it in <InstallDir>/CATALINA_HOME/lib.
    3. In <InstallDir>/CATALINA_HOME/conf/server.xml, add the following code:
      < Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener" rmiRegistryPortPlatform="8999" rmiServerPortPlatform="10002" />

      The sample Java code uses the port number 8999.

    4. Add the following line to <InstallDir>/CATALINA_HOME/bin/catalina.sh:
      CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false 
      -Dcom.sun.management.jmxremote.authenticate=false" 
    5. Optional: If you use Windows, add the following line to <InstallDir>/CATALINA_HOME/bin/catalina.bat:
      CATALINA_OPTS=%CATALINA_OPTS% -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false 
      -Dcom.sun.management.jmxremote.authenticate=false
  5. After Rule Execution Server is deployed, open a web browser and enter one of the following URLs to open the Rule Execution Server console:
    • WebSphere® Application Server: http://localhost:9080/res
    • Tomcat: http://localhost:8080/res
    • WebLogic: http://localhost:7001/res
  6. Log in to the Rule Execution Server console by using resAdmin as the user name and password.
  7. Click the Explorer tab to display the list of RuleApp archives that are deployed on the Rule Execution Server console.