How to connect a Docker-deployed BusinessEvents application to a Docker-deployed TCP service

How to connect a Docker-deployed BusinessEvents application to a Docker-deployed TCP service

book

Article ID: KB0073299

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.6 and later

Description

I want to deploy my BusinessEvents application in Docker. This application needs to reach out to a locally-run TCP service, which is also deployed in Docker. What IP address should I use in my BusinessEvents application to ensure a successful connection?

Issue/Introduction

Describes how to connect a Docker-deployed BusinessEvents application to a Docker-deployed TCP service.

Resolution

Inspect the Docker container which runs the TCP service, and refer to the returned value for IPAddress. For example..
$ docker inspect oracle12_db | grep \"IPAddress\"\:\
"IPAddress": "172.17.0.2"
This IP address should be recognized by the Docker container that runs your BusinessEvents application. Use this IP address when configuring URIs for connection resources (e.g. HTTP, JMS, JDBC) and applicable Channel definitions (e.g. Kafka).