For both file and database persistence types, you can specify
that multiple execution units (XU) can concurrently access a ruleset
in the persistence layer.
About this task
Whether you have set the persistence to file or
to database for a ruleset, you can set the property CONCURRENT_PERSISTENCE_ACCESS to
enable concurrent, multithreaded access to rulesets by the Execution
Unit (XU) on the persistence layer. The default value of this property
is false.
Important: Carefully
consider your choice before changing this default value because setting
it to true might lead to access conflicts if the
database driver does not support multithreading.
Procedure
To set concurrent access rights:
- Open the RAR deployment descriptor in any text or XML editor.
- Locate the property name <config-property-name>persistenceProperties</config-property-name>.
- In the <config-property-value> lines,
add the CONCURRENT_PERSISTENCE_ACCESS property
and set its value as follows:
- Java™ EE database persistence:
<config-property-value>
JNDI_NAME=jdbc/resdatasource
CONCURRENT_PERSISTENCE_ACCESS=false</config-property-value>
- Java SE database persistence:
<config-property-value>
DRIVER_CLASS_NAME=org.apache.derby.jdbc.EmbeddedDriver,
URL=jdbc:derby:resdb;create=true,
USER=res,
PASSWORD=res,
CONCURRENT_PERSISTENCE_ACCESS=false</config-property-value>
- File persistence:
<config-property-value>
DIRECTORY=res_data,
CONCURRENT_PERSISTENCE_ACCESS=false</config-property-value>
- Save the deployment descriptor.
- Restart the application server.