Enabling Read-Only Mode
Enabling read-only mode is very simple: you just set up read-only access to the database and then add one property to a configuration file. You will usually need to add the property in the host configuration layer of each host you want to run in read-only mode (or possibly in a family configuration layer for a group of hosts that are all to run in read-only mode). For general information about configuration layers and how they are organized, see Configuration Layers.
See Escenic Content Engine Installation Guide for an explanation of the term database-host used in the following instructions.
To run two hosts called
ReadOnly1 and ReadOnly2 in
On your database-host, create a user with read-only access to the database.
/opt/tomcat/conf/context.xmlin an editor and change
passwordto reflect the credentials created in step 1.
ReadOnly2and make the same change to
/etc/escenic/engine/host/ReadOnly2/ServerConfig.propertiesin an editor and add
Make the same change to
/etc/escenic/engine/host/ReadOnly1/ServerConfig.properties. (In a standard Escenic installation, the configuration layers in
/etc/escenic/engine/are stored in a shared file system, so you can edit all configuration layers from one machine.)