How to define and pass system properties to the be-engine.

How to define and pass system properties to the be-engine.

book

Article ID: KB0093704

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Description:
How to define and pass system properties to the be-engine.

Issue/Introduction

How to define and pass system properties to the be-engine.

Resolution

Solution A - Define through standard JVM properties:

System property of JVM can be defined and set with the -D parameter with JVM extend properties. For example, to define a property probe.group and set its value with TIBCO_C307923:

- Locate java.extended.properties in be-engine.tra file.


- Add the -D parameter to java extended properties for system property. e.g.:
java.extended.properties=-server -Xms1024m -Xmx1024m -javaagent:%BE_HOME%/lib/cep-base.jar -javaagent:/opt/usjprobe/probe/DiagnosticsAgent/lib/probeagent.jar -XX:MaxPermSize=256m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:-UseSplitVerifier -Dprobe.group=TIBCO_C307923


- Save the modified be-engine.tra and use this be-engine.tra to start your be-engine.


Solution B - Define the parameter under java.property. In this way you can use a variable and set the variable value at startup:

Instead of using the -D parameter in java.extended.properties, use the following option:


-In be-engine.tra, define the parameter under java.property and set its value with a variable, e.g.:
java.property.probe.id=%probeidvariable%


- When starting the be-engine, use the --propVar to pass value for variable, e.g.:

be-engine --propVar probeidvariable=probidAtCommand ...