Changing the ruleset persistence type in the XU

You can change the persistence type to a file system or a database for a ruleset.

About this task

You can change the ruleset persistence type for the ruleset repository in the persistenceType property of the deployment descriptor.

Important:

The ruleset persistence settings must be the same in the execution unit as in the Rule Execution Server console. See Changing the ruleset persistence type in the console.

Procedure

To change the persistence type for rulesets:

  1. Open the RAR deployment descriptor in any text or XML editor.
  2. Locate this property:

    <config-property-name>persistenceType</config-property-name>

    The default value is database persistence in Java™ SE: <config-property-value>jdbc</config-property-value>

  3. Replace the default value with file or database:
    • File persistence: <config-property-value>file</config-property-value>
    • Database persistence in Java EE: <config-property-value>datasource</config-property-value>

      In this case, you configure the data source by setting the persistenceProperties property.

  4. Save the deployment descriptor.
  5. Restart the application server.