Using an environment file to define Java options
Use the nco_g_cem.env environment file to define Java options that you want the Gateway for CEM to pick up at run time.
Overview
The JRE_OPTS environment variable defined in the nco_g_cem.env file defines Java options specific to the Gateway for CEM. The JRE_OPTS environment variable is supplied with Java options that define three system properties. At start-up, the gateway picks up the contents of the JRE_OPTS environment variable.
The following sections discuss in more detail the nco_g_cem.env file and the three defined system properties.
The nco_g_cem.env file
The nco_g_cem.env file supplied
with the gateway resides in the $OMNIHOME/gates/cem directory
and contains an environment variable called JRE_OPTS.
The JRE_OPTS environment variable is supplied with
the following Java options that make use of the -D
switch
to define the following system properties that get executed at run
time:
- org.apache.commons.logging.Log - This system
property is set to the value of
org.apache.commons.logging.impl.SimpleLog
, which identifies the logging mechanism that the gateway uses. This logging mechanism is the Simple Log package that is distributed under The Apache Software Foundation License. - org.apache.commons.logging.simplelog.showdatetime -
This system property is set to the value
true
to include the current date and time in output messages. The default value isfalse
, which means the current date and time is not included in output messages. - org.apache.commons.logging.simplelog.log.org.apache.http -
This system property specifies the logging detail level for a
SimpleLog
instance namedlog.org.apache.http
. In this case, the valueDEBUG
indicates that the logging detail level used is debug.
To define additional Java options specific to the gateway, add them to the JRE_OPTS environment variable in the nco_g_cem.env file.