Managing Substitution Variables
Use
Substitution variables let you set specific values for component properties for different environments.
Prerequisites
You must be connected to an AS Java.
The Deployment perspective is open from .
Procedure
Viewing Substitution Variables
To view an actual list of the substitution variables on the AS Java, in the Deployment Job view expand Variables .
Adding a Substitution variable
-
Choose Add .
-
Enter the appropriate values in the columns.
Removing a Substitution Variable
-
Select a variable from the list.
-
Choose Remove .
-
Choose Apply .
Result
The values of the substitution variables match your needs and the applications can behave accordingly.
Example
The application X requires resource Y . Resource Y has different locations on the two server nodes as follows:
-
On server node 1 it is located in directory server1/test1
-
On server node 2 it is located in directory server2/test1
To minimize efforts, application X can refer to the location of resource Y as {Y_location}/Y . Using substitution variables you can give different values to the substitution variable {Y_location} for the two different nodes. For:
-
Server node 1 it will be {Y_location} = server1/test1
-
Server node 2 it will be {Y_location} = server2/test1
As a result, you have more freedom to manage your resources and at the same time you do not have to change the application before deploying it different on server nodes.

