WAS v8.5 > Administering applications and their environment > Administering the Liberty profile > Administering the Liberty profile manually > Using includes, variables, and Ref tags in configuration files

Using variables in configuration files

We can use variables in the configuration to avoid hard coding values that might not be appropriate when the configuration is reused in different environments. Variables can be defined by setting a property in any of the following places:

Best practice: Variables specific to a particular server, for example port numbers, are usually specified in bootstrap.properties, 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 included into the parent configuration file.


Parent topic: Using includes, variables, and Ref tags in configuration files


|