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 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.
From the admin console, click...
Environment > WebSphere variables > WebSphere_variable_name
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:
- Giving the new property the value of ${WAS_SERVER_NAME}
- Saving this definition
Now when we 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
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 containing one or more symbolic names, it replaces the symbolic names with their defined values. For example, we might define a variable name that represent a commonly used file path or URL.
WebSphere Application Server variables are used for:
- Configure WAS path names, such as JAVA_HOME, and APP_INSTALL_ROOT.
- Configure certain cell-wide customization values.
- Configure 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 provided with the product.
Value
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
Description
Documents the purpose of a variable.
Information Value Data type String
Related:
WebSphere variables Create, edit, and delete WebSphere variables