Integration using TCP/IP sockets

Learn how to use TCP/IP nodes for integration with external applications by using TCP/IP sockets.

IBM Integration Bus enables you to integrate with external applications by using TCP/IP sockets. Two sets of TCP/IP message flow nodes exist in IBM Integration Bus: TCPIPServer nodes and TCPIPClient nodes. Both sets have identical function in terms of accessing the data streams; however, one set uses client connections and the other set uses server connections. This tutorial also uses configurable services as a convenient way to manage the TCP/IP connections.

This tutorial includes an application called 'TCPIPServer' that simulates a TCP/IP server that is configured to send the data over TCP/IP sockets. The main message flow in the server application is driven by an XML message arriving on the HTTPInput node. When the message flow with the TCPIPServer node is deployed, the TCP/IP server is started automatically.

This tutorial also demonstrates how a message flow can be driven by the TCPIPClient node. By default, this node does not open a client connection. The way to configure it properly is to use a TCPClient configurable service to enable at least one client connection to be opened when the flow is deployed. The same configurable service also defines the server host name and port number.

An important part of TCP/IP input node configuration is setting up the proper record detection algorithm. This tutorial demonstrates the use of 'Parsed Record Sequence' record detection in XML messages.

You can also find examples of the use of Trace, FileOutput, Mapping, HTTPInput and HTTPReply nodes.

This tutorial takes approximately 10 minutes.
Start Tutorial
Back To Gallery
Tutorial Topics
  • Use of the TCPIPClientInput node.
  • Use of the TCPIPServerOutput node.
  • TCP/IP configurable services.
Learning outcomes
  • Understand how to use the TCPIPClientInput and the TCPIPServerOutput nodes in integration flows.
  • Learn how to configure and manage TCP/IP connections by using configurable services.