KB Article #169348
$CORE_ROOT/config/environment.dat and $CORE_LOCAL/config/environment.dat... which one is loaded first
Problem
-- what happens when a same environment variable is set in both $CORE_ROOT/config/environment.dat and $CORE_LOCAL/config/environment.dat ?
-- what is the current behavior and what is the expected behavior ?
Resolution
* in Integrator 3.6.0_SP9 and previous versions, $CORE_LOCAL/config/environment.dat is loaded first, and $CORE_ROOT/config/environment.dat is loaded after. It means that when a variable is defined in both files, Integrator will use the value defined in $CORE_ROOT/config/environment.dat
* that is not correct. the normal behavior would be to override the value with the one defined in $CORE_LOCAL, because the local directory is used to customize the configuration
* in Integrator 3.6.0_SP10 and later, $CORE_LOCAL/config/environment.dat values will loaded after, so that variables defined in $CORE_LOCAL will override the variables defined in $CORE_ROOT
* in SP9 and previous verisons, if a same variable is defined in both files, a workaround is to comment the line in $CORE_ROOT/config/environment.dat, but be careful : a new environment.dat may be copied when installing a new patch or Service Pack and dismiss your change !