How to use Global Variables (GVs) from custom config management in TIBCO BusinessEvents.

How to use Global Variables (GVs) from custom config management in TIBCO BusinessEvents.

book

Article ID: KB0075762

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.6.1

Description

How to use Global Variables (GVs) from custom config management in TIBCO BusinessEvents.

Issue/Introduction

How to use Global Variables (GVs) from custom config management in TIBCO BusinessEvents.

Environment

All

Resolution

TIBCO BusinessEvents application deployed on a cloud platform can use global variables from the key-value store in Consul. If one wants to use their own custom configuration management system, they could create a wrapper similar to the one provided for Consul @  https://github.com/TIBCOSoftware/be-tools/tree/master/cloud.

In order to create a custom wrapper, one needs to understand current implementation for consul in setup.sh & run.sh files @ $be-tools-master\cloud\docker\gvproviders\consul\

setup.sh :- uses wget utility to download jq & consul cli tools.
run.sh :- uses consul cli to get GVs from consul server & uses jq (a command line JSON processor)  to parse the GVs to put into properties file (/home/tibco/be/beprops_all.props). 

This properties file will have tibco.clientVar.xxx format for BE to understand the GV:-
======= for example =======
# GV values from Consul
tibco.clientVar.MyVar=consul_prod_Myvar
======================

One can write their own logic to retrieve the GVs from their custom configuration management and insert into properties file by changing setup.sh & run.sh. Some more information about Setting Up the Application to Use Global Variables from Consul can be found  https://docs.tibco.com/pub/businessevents-enterprise/5.6.1/doc/html/GUID-57668596-829C-4D24-B671-6667EB99CA30.html

Additional Information

https://docs.tibco.com/pub/businessevents-enterprise/5.6.1/doc/html/GUID-57668596-829C-4D24-B671-6667EB99CA30.html