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

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

book

Article ID: KB0073344

calendar_today

Updated On:

Products Versions
TIBCO Streaming 10.6 and later

Description

I want to deploy my Streaming 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 Streaming application to ensure a successful connection?
 

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 where your Streaming application is deployed. Use this IP address when configuring URIs for Streaming adapters (e.g. JMS), operators (e.g. ActiveSpaces operators), and JDBC data sources.

Issue/Introduction

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