How to connect to the JMX MBean of an TIBCO BusinessEvents (BE) application started in a Docker container

How to connect to the JMX MBean of an TIBCO BusinessEvents (BE) application started in a Docker container

book

Article ID: KB0072049

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 6.x

Description

Required configuration settings to be able to connect to the BE JMX MBean of a BE application started in a Docker container with JDK tool JConsole

Note:
Scripts to create a BE application image available here:
https://github.com/TIBCOSoftware/be-tools

Documentation:
https://github.com/TIBCOSoftware/be-tools/wiki/Dockerize

Environment

Docker environment

Resolution

To be able to connect from an external host to the BE JMX MBean, it is required that the tra property  "java.property.java.rmi.server.hostname" has been added to the be-engine.tra file and set to the value to dockers host IP or dockers hostname.
To do this start the container with environment variable "tra.java.property.java.rmi.server.hostname=<ip/hostname>"

e.g.,
docker run -it --rm  -p 8108:8108 -p 5555:5555 -e PU=default -e tra.java.property.java.rmi.server.hostname=127.0.0.1 -e ENGINE_NAME=fdsample fd:be621

 

Issue/Introduction

Configuration requirements to be able to connect to the BE JMX MBean of a BE application started in a Docker container