A substitution variable is a configuration property that can be
used to provide a parameter for any value in a WebSphere® Application Server v6.0
configuration. The variable has a name and a value to be used in place of
that name wherever the variable name is located within the configuration files.
Prerequisite
- Created an enterprise application and target the server to WebSphere Application
Server v6.0.
To add a substitution variable, follow these steps:
- Switch to the J2EE perspective.
- In the Project Explorer view, expand the Enterprise
Applications folder.
- Under the enterprise application project folder for which you add
the substitution variables, double-click the Deployment Descriptor to
open the Application Deployment Descriptor editor.
- Select the Deployment tab at the bottom
of the editor.
- Expand the Substitution Variables section.
- Click the Add button beside the Variables
list table. The Add a Variable dialog box opens.
- In the dialog box, fill in a name, value, and description for the
variable. For example, a variable with the symbolic name CONFIG_ROOT
could represent the path C:\WebSphere\AppServer\Config.
For more information about any of the fields on this dialog box, select the
field and then press F1. Click OK.
- Save your changes and close the editor. The substitution
variables entries have been added to the deployment descriptor files.