After you have deployed the MBean descriptors, you deploy
the resource adapter archive (RAR) for the execution unit (XU) to WebSphere® Application
Server.
Before you begin
You deploy the XU resource archive from the WebSphere Integrated Solutions
Console. Log in to the console as explained in Before you start: Opening the administration console. Operational Decision Manager supports JDK7, but make sure to use IBM®
WebSphere SDK Java™
Technology Edition version 7.0.5 or later. In addition, you must follow a specific procedure to
deploy the XU. For more information, see the following technote: http://www.ibm.com/support/docview.wss?uid=swg1IV45202.
To ensure that
Rule Execution Server can
locate the resource bundles, complete the following steps for the
deployment manager, node agents and cluster members:
- In the Websphere Integrated Solutions Console,
click .
- In the Server Infrastructure section, click .
- From the Additional Properties, select .
- In the Generic JVM arguments field, type
the following line: -Djdk.logging.allowStackWalkSearch=true.
- Restart the server.
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 and
add the properties by which to identify it. The RAR file contains
the XU and the persistence layer.
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 or deploy it as a global connector. Refer
to the application server documentation for instructions on packaging
a connector into an EAR. In any case, be aware of the following consequences.
- When the XU is deployed as a global connector:
- 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 are deployed at the level of the application-server
code library is not compatible with the XU.
Procedure
To deploy the XU RAR:
- In the WebSphere Integrated Solutions Console,
open , and then click .
- In the Resource adapters panel, under Scope,
select the Node=xxx, Server=yyy,
and then click New.
xxx is
the name of your node and yyy the name of your
server.
- Click Install RAR.
- In the next panel, make sure that Local file
system is selected, browse to the resource archive file,
and click Next: <ODM_InstallDir>/executionserver/applicationservers/WebSphere85/jrules-res-xu-WAS85.rar
- In the General Properties page,
enter the XU name.
- Set the name for the XU, such as RES XU Resource
Adapter.
- Select the Isolate this resource provider option.
- Click OK.
- Back to the Resource adapters page,
click Save.
- In the next panel, select All scopes from
the drop-down list so that the table of resource adapters shows the
XU resource that you have just added.
- Click the new resource name in the table.
In
this example, you named it RES XU Resource Adapter
Click the link, do not just select the check box.
- In the next panel, under Additional Properties, click J2C
connection factories and New.
- Enter the following values:
- Click OK and Save to
save the changes to the master configuration.
- Optional: You can define more than one XU resource
adapter.
You need more XU resource adapters when you
have more than one node in your environment or you want to isolate
the development and testing environments in one single node. You can
deploy a JCA resource adapter at any level, depending on the capability
of the application server. On WebSphere Application
Server, you
can install the XU resource adapter at the cell, node, cluster, or
server level. But you must install it at the node level before you
can deploy it at other levels.
For example, to define a XU
resource adapter on the server level, follow these steps:
- In the side panel, open and click Resource
adapters, then click Install RAR.
- Select the scope Node=xxx,
Server=yyy, where xxx is
the name of your node, yyy is the name of your
server.
- Click New and enter the name
of the XU as XU.
- In Archive Path, select ${CONNECTOR_INSTALL_ROOT}/jrules-res-xu-WAS<version_number>.rar.
- Select Isolate this resource provider.
- Click OK.
- Repeat 5 through 11 to define the connection factory.
- Restart the server.
Tip: Whenever
you install or uninstall a XU, you must restart your application server.
- Optional: If you want to modify the XU properties
after deployment:
- In the Websphere Integrated Solutions Console,
click .
- Click the XU connection factory name.
- Click Custom properties.
- Click the name of the XU property to change.
- Modify the value of the XU property.
- Click OK.
- Save the configuration change.
- Restart the server.
What to do next
For more information, especially for instructions about packaging
a connector into an EAR or about installing extra XU resource adapters,
see the
WebSphere Application
Server Version 8.5 Information Center.