Overriding the servlet configuration
You can use JVM arguments or environment variables to override the servlet configuration.
About this task
Using JVM arguments
In some situations, you might need to override the servlet configuration, for example if you deploy IBM Content Navigator in a horizontal cluster and all the WAR files are the same, they must use JVM arguments to locate the separate cache locations to be used by IBM Daeja ViewONE. Otherwise, the clones might use the same cache folder, which causes a conflict.
To override the configuration settings that are specified in the web.xml
file, you can use JVM arguments. The format of the property is as
follows:
com.ibm.dv.servlet.<my servlet>.<property>Where:
- <my servlet> is the name of the IBM
Daeja ViewONE servlet, as defined in the web.xml file.
In an IBM Content Navigator environment, the servlet name is
viewoneplatform. - <property> is the name of a standard IBM Daeja ViewONE configuration parameter to be overridden. You can override multiple properties by specifying multiple JVM arguments.
For example, to override the value of
cacheRoot in a servlet called
viewone, add the following JVM argument to your web application configuration:
-Dcom.ibm.dv.servlet.viewone.cacheRoot=/opt/cacheUsing environment variables
Use a property in the following format:
ibm_dv_<my servlet>_<property>For example:
export ibm_dv_viewone_cacheRoot=/viewone/cacheroot