JVM auto defines
The driver always includes these defines for the JVM. They are available in
Java at any time through the system properties. For example, System.getProperty("THREADNAME")
.
-
THREADNAME
: The name of the driver thread. -
ROOTPATH
: The path to the install directory. -
SITEPATH
: The path to the site directory. -
PROCESSPATH
: The path to the thread's process directory. -
PROCESSNAME
: The name of the process in which the driver is running. -
USERECOVERY
: TRUE/FALSE from thread properties for recovery database use.
To use environment variables, it should be understood that they are set at the time the engine process starts. They cannot be later modified so the JVM can only see what was set for the process.