Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 8 Setting Deployment Options : Changing Global Variables at Deployment

Changing Global Variables at Deployment
An application’s EAR file can contain global variables with values set at design-time. The global variables can be changed at deployment at the application level, service level, or service instance level.
Global variable values can be set at the application, service, and service instance levels. A variable value set at the service instance level overrides the same variable value set at the service level. Similarly, a variable value set at the service level overrides the same variable set at the application level.
Each service instance can use the same variable and assign it a different value. The instance variable can be any services settable variable defined at configuration.
The rules for resolving global variable values are as follows.
For example, for the application below, MYVARIABLE is set to 3 in the EAR file. MYVARIABLE is changed for each service instance in the TIBCO Administrator GUI to a different value. After deployment, the three service instances will use the value assigned in the TIBCO Administrator GUI for MYVARIABLE.
 
   Application1 (MYVARIABLE 3)
     Service1 (MYVARIABLE 3)
      ServiceInstance1 (MYVARIABLE 4)
      ServiceInstance2 (MYVARIABLE 5)
      ServiceInstance3 (MYVARIABLE 6)
For example, for the application below, MYVARIABLE is set to 3 in the EAR file. MYVARIABLE is changed to 4 for Service1 and left unchanged for the ServiceInstance1 and ServiceInstance2. MYVARIABLE is changed to 5 for ServiceInstance3. After deployment, ServiceInstance1 and ServiceInstance2 will use 4 for MYVARIABLE. ServiceInstance3 will use 5 for MYVARIABLE.
 
   Application1 (MYVARIABLE 3)
     Service1 (MYVARIABLE 4)
      ServiceInstance1 (MYVARIABLE 3)
      ServiceInstance2 (MYVARIABLE 3)
      ServiceInstance3 (MYVARIABLE 5)
For example, for the application below, MYVARIABLE is set to 3 in the EAR file. MYVARIABLE is changed to 4 for Application1 and is unchanged for all services and service instances. After deployment, all ServiceInstances will use 4 for MYVARIABLE.
 
   Application1 (MYVARIABLE 4)
     Service1 (MYVARIABLE 3)
      ServiceInstance1 (MYVARIABLE 3)
      ServiceInstance2 (MYVARIABLE 3)
      ServiceInstance3 (MYVARIABLE 3)
     Service2 (MYVARIABLE 3)
      ServiceInstance11 (MYVARIABLE 3)
      ServiceInstance22 (MYVARIABLE 3)
      ServiceInstance33 (MYVARIABLE 3)
 
To Change Application Properties
1.
2.
Click Application > Configuration, where Application is the application created when you loaded the enterprise archive file. See Creating an Application.
3.
Click the Advanced tab to change values set for global variables. Use valid XML characters only. See Global Variables for descriptions.
The Reset to Defaults button restores all properties to the values defined in the enterprise archive file.
4.
Click Save.
5.
Figure 40 Changing Application Properties
6.
Click Deploy.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved