JCR data is stored in both SQL databases and File System. JCR Database configuration is explained in Database. The JCR File System configuration is explained in this section.
Typically, the JCR File System data consists of four folders:
JCR values storage.
To store JCR value, SQL database is used as primary storage and another directory can be used as a secondary, dedicated storage for BLOB data. It is optional and you can configure to not store BLOB data in File System, by changing the default configuration in the following files. See Configuration overview for how-to.
JTA (Transaction information).
Swap data (temporary memory space).
By default, these four folders are located under a common directory that is
$PLATFORM_TOMCAT_HOME/gatein/data (Tomcat) or
In production, it is recommended to configure it to use a directory separated from the package. Especially in cluster mode, it should be a network shared folder.
Configuration in Platform Tomcat
In Tomcat, the directory is configured by the environment variable
You need to create the script file by copying/renaming the sample
See Customizing environment variables for more information.
Configuration in Platform JBoss
In JBoss, the directory is configured by the system property
standalone/configuration/standalone-exo.xml like below:
<property name="exo.data.dir" value="/mnt/nfs/shared/exo/data"/>
Note that if you are configuring the cluster mode, the configuration might be different. The file should be
standalone-exo-cluster.xml and the property should be
See Setting up eXo Platform cluster.