Changing Global Variables
Whether a global variable is configurable at deployment and at the service or service instance level depend on the definition of the variable at design time. See Specifying Global Variables for more information.
To change the value of a global variable, use the Configuration and Builder pane and follow these steps:
Procedure
1. | Select the level at which you want to change the variable: |
— | Application In the displayed Edit Application Configuration dialog, click the Advanced tab and change the variable in the Global Variables pane. |
— | Service In the displayed Edit Service Configuration dialog, click the Advanced tab and change the variable in the Runtime Variables pane. |
— | Service level variables are only included in the service archive (EAR) file. |
Service Instance In the displayed Edit Service Instance dialog, click the Advanced tab and change the variable in the Runtime Variables pane.
2. | Click Save. |
Note |
Click Reset To Defaults to reset all the global variables to the default values defined in the EAR file. |
After making the changes, you have to redeploy the application to use the new values. When you deploy the application and run the configured components, all occurrences of a global variable name are replaced with the value of that variable, unless it was overridden in a way that had higher precedence. For example, if you defined the value for the RvServiceTest
global variable as 7800
, the variable will be replaced with 7800
at run time.