Step 6: Deploying the XU RAR

The execution unit (XU) is a resource adapter for Java™ EE-based application servers. It is supplied as a RAR archive that you must deploy on WebLogic Server.

Before you begin

Before you deploy the XU RAR file, make sure that the Anonymous Admin Lookup Enabled option is turned on, otherwise you get an error message. See Enabling Anonymous Admin Server Lookup for MBeans.

If you use Oracle WebLogic Server in combination with the IBM® WebSphere® SDK Java Technology Edition 7, you must follow a specific procedure to deploy the XU: Before installing the XU, edit the setDomainEnv.sh file in the bin directory of the WebLogic domain, and then add -Djdk.logging.allowStackWalkSearch=true in the JAVA_OPTIONS variable (see the technote IV45202: Behavioral change to java.util.logging.logger which may affect applications that depend on the stack-walk for locating resource). To ensure that Rule Execution Server can locate the resource bundles, edit the setDomainEnv.sh file in the bin directory of the WebLogic Server administration server: Add -Djdk.logging.allowStackWalkSearch=true in the JAVA_OPTIONS variable.

About this task

You can use the upload directory of WebLogic Server to deploy the modules at start up. The upload directory depends on the server configuration; by default it is named /autodeploy. The directory is in the list of directories that are shown in the WebLogic Server administration console.

Note: In some cases, because of your application constraints, you might have to deploy the XU inside the application. Choose the appropriate deployment mode of the XU: either embed it into the EAR file or deploy it as a global connector. 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 that are deployed in the application server.
    • Use the parent last setting for the XU Java EE application if your Java EE application does not support the version of the third-party libraries that is distributed with Decision Server. If you cannot use the parent last setting, you might have to embed the XU into the EAR that executes the rules.
  • If you choose an embedded XU packaging, use the parent last setting for the code library if the version of the third-party libraries that is deployed at the level of the application-server code library is not compatible with the XU.
Tip: When the default configuration in shared mode is not appropriate for your use case, you can configure Rule Execution Server so that it is scoped to a single Java™ EE application. See Configuring Rule Execution Server in scoped mode.
Tip: You can safely ignore the following message:
<Warning> <WorkManager> <BEA-002919> <Unable to find a Work Manager with name jrules-res-xu-WL12.rar. Dispatch policy jrules-res-xu-WLXX.rar will map to the default Work Manager for the application jrules-res-xu-WLXX.rar>
If default work manager settings are not appropriate, create a dedicated work manager of the reported name, and tune it as appropriate.

You can find the name of your server by opening Environment in the Domain Structure and clicking Servers.

Procedure

  1. In the WebLogic Server Administration Console, at the bottom of the Home Page, click Deployments.
  2. In the Summary of Deployments page, under Deployments, click Install.
  3. In the Install Application Assistant, click the link upload your file(s).
  4. Click Browse next to Deployment Archive, upload <InstallDir>/executionserver/applicationservers/WebLogicXX/jrules-res-xu-WLXX.rar, and then click Next.
  5. Make sure that jrules-res-xu-WLXX.rar is selected and click Next.
  6. Select Install this deployment as an application and click Next.
  7. Make sure that Use the defaults defined by the deployment's targets is selected and click Finish.
  8. Restart the target server.