Step 1: Selecting and applying the persistence type
By default, RuleApp and Java™ XOM persistence are set to datasource. You can use an Ant task to change the persistence type.
Note: This step does not apply to beginners who work with the embedded
Derby database.
The res-setup Ant task definition is located in <ODM_InstallDir>/executionserver/bin/ressetup.xml. Use this task to create a new instance of the Rule Execution Server management and XU (execution unit) archive files.
To change the persistence mode to file, run the Ant task as follows:
ant -Dxu.in=../applicationservers/WebSphere85/jrules-res-xu-WAS85.rar
-Dxu.out=myxu.rar
-Dconsole.ear.in=../applicationservers/WebSphere85/jrules-res-management-WAS85.ear
-Dconsole.ear.out=mymanagement.ear
-Dpersistence.type=file -f ressetup.xml setup
The following conditions apply:
| Condition on... | Description |
|---|---|
| Decision Warehouse | If you select the file persistence type, you cannot use Decision Warehouse. |
| Decision Runner | If you select the file persistence type, you cannot use the Decision Runner in testing and simulation. |
| Solaris users | If you use file-based persistence on Solaris, your file system must support all characters used in directory and file names that are present in the ruleset path (RuleApp name and ruleset name). Set the LANG system property with the encoding that is compatible with your package and rule names, for example en_US.UTF-8. |