Show TOC

Procedure documentationManaging Substitution Variables Locate this document in the navigation structure

 

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   Windows   Open Perspective   Other   Deployment  .

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
  1. Choose Add.

  2. Enter the appropriate values in the columns.

Removing a Substitution Variable
  1. Select a variable from the list.

  2. Choose Remove.

  3. 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 Yhas 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 Yas {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.