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