This topic describes how to create a WebSphere Application Server variable.
Before you begin
You can define a WebSphere Application Server variable to provide a parameter for some values in the system. After you define the name and value for a variable, the value is used in place of the variable name. Variables most often specify file paths. However, some system components also support the use of variables.
The scope of a variable can be node-wide or applicable to only one server process.
Why and when to perform this task
Define variables on the Environment > WebSphere Variables console page.
Define the scope to apply a variable node-wide or to only one server process. A variable resolves to its new value when used in a component that supports the use of variables.
Steps for this task
The variable exists at the level you specify. Define a variable at multiple levels to use multiple values. The more granular definition overrides the higher level setting.
For instance, if you specify the same variable on a node and a server, the server setting overrides the node setting.
Scoping variables is particularly important when testing data source objects. Variable scoping can cause a data source to fail the test connection, but to succeed at run time, or to pass the test connection, but fail at run time.
See Test connection service for more information.
Related concepts
Variables
Related tasks
Configuring the environment
Related reference
Session management custom properties
Related information
HTTP transport custom properties