Using variables in configuration files

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.

Procedure


Icon that indicates the type of topic Task topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Monday, 21 April 2014
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-iseries&topic=twlp_setup_vars
File name: twlp_setup_vars.html