Substituting global variables from the command line.

Substituting global variables from the command line.

book

Article ID: KB0091025

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
===========
How to substitute global variables from the command line?

Environment:
===========
TIBCO BusinessEvents 5.x
All Operating Systems

Resolution:
========

In the tra file:

java.property.tibco.clientVar.&ltGV>=&ltcmd variable>

On commandline:

--propVar &ltcmd variable>=&ltvalue>

Example:
In tra file
++++++++++++++++++++++++++
java.property.tibco.clientVar.logmsg=%logmsg%
java.property.tibco.clientVar.g1/g2/p1=%grouptest%
+++++++++++++++++++++++++++++++++

From command line:
++++++++++++++++++++
C:\be402\be\4.0\bin&gtbe-engine -n gvtest -u default -c E:\MyWorkspace\be402\gvtest\Deployments\gvtest.cdd C:\Users\Devon\gvtest.ear --propVar logmsg="log msg from cmd" --propVar grouptest="value for group gv from cmd"
++++++++++++++++++++

Issue/Introduction

Substituting global variables from the command line.