Setting WOW's environment
An instance of WOW can have its environment set in one of three ways: as an init parameter in the web.xml; as a servlet context parameter; or from a Java system property. The current environment of a WOW instance is displayed on the Connections screen in the WOW Builder
Setting the environment in web.xml
The PJ_ENVIRONMENT_MODE init param can have its value set to "DEV", "PROD", or "TEST". For example, to set the WOW instance's environment to Production, the following would be placed in web.xml:
<init-param id="WOW Environment">
<param-name>wow.env.mode</param-name>
<param-value>PROD</param-value>
</init-param>
Unlike other WOW init parameters, the Environment Mode cannot be set in any other property file - the web.xml is the only place it can be set as an init parameter.
Setting the environment as a servlet context parameter
The “wow.env.mode” servlet context parameter can have its value set to "DEV", "PROD", or "TEST". In the Apache Tomcat application server, servlet context parameters can be set in the context.xml file, located in the <Tomcat base directory>/conf directory.
For example, to set all web applications on a Tomcat server as TEST contexts, the following would be placed in conf/context.xml:
<Context>
<Parameter name="wow.env.mode" value="TEST" />
</Context>