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 a directory can be used as a secondary and 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 file:
$PLATFORM_TOMCAT_HOME/gatein/conf/configuration.properties (in Tomcat).
$PLATFORM_JBOSS_HOME/standalone/configuration/gatein/configuration.properties (in JBoss):
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 (in Tomcat) or
$PLATFORM_JBOSS_HOME/standalone/data/gatein (in JBoss).
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
bin/setenv-customize.sh script (.bat for Windows):
You need to create the script file by copying/renaming the sample
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="gatein.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.