Configure the database environment

For your application to work correctly, you need to set database-related environment.

Environment variables are set within the EXECUTION element of an application's configuration.

Syntax

<ENVIRONMENT_VARIABLE Id="env_var">env_value</ENVIRONMENT_VARIABLE>
  1. env_var is the environment variable name.
  2. env_value is the value used to set the variable name.

Example

Example (using Informix®):

<APPLICATION Id="myapp" Parent="defaultgwc">
  <EXECUTION>
    <ENVIRONMENT_VARIABLE Id="INFORMIXDIR">ifx_path</ENVIRONMENT_VARIABLE>
    <ENVIRONMENT_VARIABLE Id="INFORMIXSERVER">ifx_server</ENVIRONMENT_VARIABLE>
    <ENVIRONMENT_VARIABLE Id="LD_LIBRARY_PATH">library_path</ENVIRONMENT_VARIABLE>
    <PATH>/home/myapp/bin</PATH>
    <MODULE>app.42r</MODULE>
  </EXECUTION>
</APPLICATION>
  1. Replace ifx_path with the value of the INFORMIXDIR environment variable.
  2. Replace ifx_server with the value of the INFORMIXSERVER environment variable.
  3. Replace library_path with the value of the LD_LIBRARY_PATH environment variable.