- Documentation
- Configuration Property Overview
- Environment Variables
Index |
|
Environment Variable Expansion |
||||||
|
The Wrapper supports environment variable expansion at run time within the values of any property. To maintain the platform independent nature of the configuration file "wrapper.conf", the Windows syntax is used for all platforms. When the Wrapper is run as a service, environment variables will be loaded from the system registry rather than from the environment. This is necessary because Windows loads the environment variables which are available to services when the machine is booted. Any changes to the system environment variables in the registry (set directly or through the system control panel) are not made available to the services until the machine is once again rebooted. By loading the environment variables from the registry, the reboot can be avoided while providing the same functionality.
This will expand at runtime to a fully qualified path on any system which defines the JAVA_HOME environment variable.
NOTEIf a referenced environment variable is not defined, then it will be left unchanged in the property value. |
Environment Variable Definition |
|||||||
|
The Wrapper supports the ability to define environment variables from within the configuration file "wrapper.conf" or from the command line. Once defined, the environment variable can be referenced like any other environment variable. This includes use in variable expansion as described above. Special Property Name starting with "set." and "set.default." : Environment variables are defined by using special property names which begin with "set." or "set.default." followed by the name of the environment variable. The value of the property will be the value of the new environment variable.
If the "set.default." property name is used, the environment variable will only be set if it does not exist yet. This can be useful for defining a series of default environment variable values.
Example: The ability to define environment variables make it possible to easily modify values that may be used throughout a configuration file. The example below shows how an environment variable can be used to specify the location of an external application.
The use of environment variables definitions can be very powerful if you understand how and when their values are set. Environment variables which were set before the Wrapper is launched can of course be used as usual. If the same variable name is specified in the configuration file then the value in the configuration file will override the existing value. From Command Line: Environment variables defined from the command line work a little differently. These values from command line will override any values from either the system or those set in the configuration file. This makes it possible to define default environment variables within the configuration file "wrapper.conf" and then also to change that value from the command line.
NOTENotice that like all properties set from the command line, properties including spaces can be defined by including the entire pair of "property name and value" in quotes. |
Default Environment Variable Definitions |
||||||||||||||||||||||||||||||||
|
On startup of Wrapper, it sets the following environment variables into its own environment. These variables can be used within the configuration file "wrapper.conf" or by accessing the environment of the JVM or any of its child processes.
|
Event Handler Variable Definitions |
|
In additional to the above environment variables, the following variables can also be referred in event properties when those events are fired. The variable values can be referenced by event properties as documented within those properties. The variables are not actually set as TRUE environment variables.
|



