Show TOC

Managing Substitution VariablesLocate this document in the navigation structure

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 Start of the navigation path Windows Next navigation step Open Perspective Next navigation step Other Next navigation step Deployment End of the navigation path.

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 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.