WebSphere variables settings

Use this page to define the name and value of a WebSphere® variable. A WebSphere variable is a name and value pair that is used to provide the setting for one of the string data type attributes contained in one of the XML formatted configuration files that reside in the product repository.

To view this administrative console page, click Environment > WebSphere variables > WebSphere_variable_name.

You can use the variable WAS_SERVER_NAME and access its value (for example, Server1, Server2 etc.) and use it in a properties file. Use the administrative console to create a new property with the name of WAS_SERVER_NAME by:
  1. Giving the new property the value of ${WAS_SERVER_NAME}
  2. Saving this definition
Now when you use ${WAS_SERVER_NAME in a .properties file, the value for WAS_SERVER_NAME is substituted. For example:
trial.appender.R.File =                                                    
/app/cell/clusters/iquote/logs/APP-${WAS_SERVER_NAME}.log

Name

Specifies the symbolic name for a product variable. After the variable is defined, this symbolic name can be specified in the Value field of any other product configuration field that accepts a string value. Whenever the application server encounters a configuration field that contains one or more symbolic names, it replaces the symbolic names with their defined values. For example, you might define a variable name that represent a commonly used file path or URL.

WebSphere Application Server variables are used for:
  • Configuring WebSphere Application Server path names, such as JAVA_HOME, and APP_INSTALL_ROOT.
  • Configuring certain cell-wide customization values.
  • [z/OS]Configuring the z/OS® location service for the product.

For example, WAS_SERVER_NAME is the pre-defined symbolic name of the variable that represents the name of the default application server that is provided with the product.

Value

Specifies the value that the symbolic name represents.

For example, server1 is the value of a pre-defined variable WAS_SERVER_NAME.

Information Value
Data type String