How to override Global Variables in a BE Studio Run Configuration

How to override Global Variables in a BE Studio Run Configuration

book

Article ID: KB0072464

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 6.x

Description

The default values for Global Variables may be overridden in your BusinessEvents Studio Run Configuration. This can be useful for local tests, where you are debugging your application from Studio, as opposed to deploying it using TIBCO Administrator or TIBCO Enterprise Administrator (TEA).

Resolution

Consider the BusinessEvents FraudDetection example, provided under $BE_HOME/examples/standard/FraudDetection/. This example uses a HTTP connection configuration under SharedResources/HTTPConnection.sharedhttp. This HTTP connection defines the http Port value to set for this application. You may set this value using a Global Variable defined in your project:

gv and http conn

Here, we have defined a Global Variable group named 'HTTP', and added a Global Variable under that group, named 'HTTP_PORT'. The default value set in the project is 8108. This Global Variable is then used in the HTTP Connection configuration, as shown above (%%HTTP/HTTP_PORT%%).

To override this value in a Studio Run Configuration, use the -V option under the 'VM Arguments' section of the Run Configuration:

override gv in run config

This will override the default value (8103) and set the http Port to 8113 instead (-VHTTP/HTTP_PORT=8113).
 

Issue/Introduction

This article demonstrates how to override the values of Global Variables in a BusinessEvents Studio Run Configuration. This can be useful for local tests, and may prevent the need to manage multiple CDD or Supplementary Properties files.