ILOG JRules User Guide > Managing Rule Execution Server > Tasks > Administering Rule Execution Server > Changing the Default Behavior of the Execution Stack > Changing the Ruleset Persistence Type

You can change the ruleset persistence type using a configuration property.

To change the persistence provider property:

  1. Open the RAR deployment descriptor using any text or XML editor.
  2. Locate the property name:
  3. <config-property-name>persistenceType</config-property-name>
  4. Replace the default value of:
  5. <config-property-value>jdbc</config-property-value> (database persistence in J2EE):
    with one of the following:
    1. <config-property-value>file</config-property-value> (file persistence)
    2. <config-property-value>datasource</config-property-value> (database persistence in J2SE)

When you use JDBC persistence, you need a single property: JNDI_NAME=jdbc/bresdatasource.

The USER and PASSWORD properties are not used by the provider in this case. USER and PASSWORD must be in the data source configuration.

The ra.xml file should contain the following:

<config-property>
  <config-property-name>persistenceProperties</config-property-name>
  <config-property-type>java.lang.String</config-property-type>
  <config-property-value>JNDI_NAME=jdbc/bresdatasource</config-property-value>
</config-property>

Related Concepts

Execution Unit (XU)

Related Tasks

Configuring the XU for the XU Plug-in
Adding Execution Unit (XU) JCA 1.5 Connection Factories