You can use variables in the configuration to avoid hard
coding values that might not be appropriate when the configuration
is reused in different environments.
About this task
Variables can be defined by setting a property in any
of the following places:
- in the server configuration file, or an included file
- in the bootstrap.properties file
The following predefined variables can be referenced:
Best practice: Variables that
are specific to a particular server, for example port numbers, are
usually specified in the bootstrap.properties file,
allowing the server.xml to be shared across multiple
servers while keeping those values different in each server. Variables
that are shared across a group of servers, for example database configuration
for a particular host, is better specified in an xml file that is
included into the parent configuration file.