Configure DVM environment variables
The application configuration file can be used to define environment variables for the DVM.
Environment variables are set with ENVIRONMENT_VARIABLE
elements in the
application configuration file.
Syntax
<ENVIRONMENT_VARIABLE Id="env_var">env_value</ENVIRONMENT_VARIABLE>
env_var
is the environment variable name.env_value
is the value used to set the variable name.
Example
Example (using Informix® database client):
<APPLICATION Id="myapp" Parent="defaultgwc">
<EXECUTION>
<ENVIRONMENT_VARIABLE Id="DBDATE">DBMY4/</ENVIRONMENT_VARIABLE>
<ENVIRONMENT_VARIABLE Id="FGLRESOURCEPATH">/home/myapp/resources</ENVIRONMENT_VARIABLE>
<ENVIRONMENT_VARIABLE Id="INFORMIXDIR">/opt/informix</ENVIRONMENT_VARIABLE>
<ENVIRONMENT_VARIABLE Id="INFORMIXSERVER">ORION</ENVIRONMENT_VARIABLE>
<ENVIRONMENT_VARIABLE Id="LD_LIBRARY_PATH">/opt/informix/lib:...</ENVIRONMENT_VARIABLE>
<PATH>/home/myapp/bin</PATH>
<MODULE>app.42r</MODULE>
</EXECUTION>
</APPLICATION>
For more details, see ENVIRONMENT_VARIABLE.