Step 7: Deploying the XU RAR

Deploy the execution unit (XU) RAR on WebSphere® Application Server for z/OS®.

About this task

This phase of the Rule Execution Server configuration consists in deploying the execution unit (XU) resource adapter archive (RAR) on WebSphere Application Server for z/OS and add the properties by which to identify it. The RAR file contains the XU and the persistence layer.

In the following procedure, <version_number> refers to the version of WebSphere Application Server for z/OS to which you deploy the XU RAR.

Important: In some cases, because of your application constraints, you might have to deploy the XU inside the application. It is your decision to choose the appropriate deployment mode of the XU: either embed it into the EAR or deploy it as a global connector. In any case, be aware of the following consequences.
  • When the XU is deployed as a global connector:
    • The deployed Java™ EE applications might use its third-party libraries (such as ASM) instead of the libraries deployed in the application server.
    • Use a parent last setting for the XU Java EE application if your Java EE application does not support the version of the third-party libraries distributed with Decision Server. If you cannot use a parent last setting, you might need to embed the XU into the EAR that executes the rules.
    • If Java security is activated, you might see the following error in the log:

      java.security.AccessControlException: Access denied ("java.util.PropertyPermission" "java.class.path" "read")

      The error can be safely ignored.

  • If you choose an embedded XU packaging, use a parent last setting for the code library if the third-party libraries version deployed at the level of the application-server code library are not compatible with the XU.

Procedure

  1. Open the WebSphere Integrated Solutions Console.
  2. In the panel, open Resources  > Resource Adapters and click Resource adapters, then click Install RAR.
  3. In the panel, select Remote file system and Browse to the location in UNIX System Services (USS) of z/OS where the archives reside:

    <InstallDir>/executionserver/applicationservers/WebSphere<version_number>/jrules-res-xu-WAS<version_number>.rar

  4. In Scope, select the node where you want to install the XU RAR file and click Next.
  5. On the General Properties page, set the name for the XU, such as ILOG RES XU Resource Adapter.
  6. If you use WebSphere Application Server v 8.5, check Isolate this resource provider.
  7. Click OK.
  8. Navigate to the created XU resource adapter and change the scope to view the adapter.
  9. Under Additional Properties, click J2C connection factories and New.
  10. Enter the following values:
    • Name: xu_cf
    • JNDI name: eis/XUConnectionFactory
  11. Click OK and Save to save the changes to the master configuration.
  12. Optional: If necessary, you can define more than one XU resource adapter.

    Additional XU resource adapters are required when you have more than one node in your environment or you want to isolate the development environment and testing environment in one single node. On WebSphere Application Server for z/OS, you can install the XU resource adapter at the node level and then you can create another copy of the resource adapter that has a specific server or cluster as the scope.

    For example, to define on the server level a XU resource adapter that has already been installed at the node level:

    1. In the panel, open Resources  > Resource Adapters and click Resource adapters.
    2. Select the scope Node=xxx, Server=yyy, where xxx is the name of your node, yyy is the name of your server.
    3. Click New and enter the name of the XU as XU.
    4. In Archive Path, select ${CONNECTOR_INSTALL_ROOT}/jrules-res-xu-WAS<version_number>.rar.
    5. In Class Path, enter ${CONNECTOR_INSTALL_ROOT}/jrules-res-xu-WAS<version_number>.rar.
    6. Click OK.
    7. Repeat steps 5 through 11 to define the connection factory.
  13. Restart the server.
    Tip: Whenever you install or uninstall a XU, you must restart your application server.

What to do next

For more information, especially for instructions about packaging a connector into an EAR or about installing additional XU resource adapters, see the WebSphere Application Server product documentation