IBM Integration Bus, Version 10.0.0.9 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS


Receiving data on a TCP/IP server socket and sending data back to the same connection

Receive data on a TCP/IP server socket, then send the data to the same connection, by the use of a message flow with TCPIPServerInput and TCPIPServerOutput nodes.

About this task

Scenario: A client application opens a TCP/IP socket and sends an undefined document (of any format or size). The end of the document is signalled by the client closing the output stream (but not the connection), and waiting for the same data to be sent back.

Instructions: The following steps describe how to write a message flow that can receive the data and echo it back to the same connection:

Procedure

  1. Create a message flow called TCPIP_Task3 with a TCPIPServerInput node and a TCPIPServerOutput node. For more information, see Creating a message flow.
  2. Connect the Out terminal of the TCPIPServerInput node to the In terminal of the TCPIPServerOutput node.
    TCPIPServerInput node connected to a TCPIPServerOutput node.
  3. Set the following properties of the TCPIPServerInput node:
    1. On the Basic tab, set the Connection details property to 14143.
    2. On the Advanced tab, set the Input stream modification property to Reserve input stream and release at end of flow.
  4. Set the following properties of the TCPIPServerOutput node:
    1. On the Basic tab, set the Connection details property to 14143.
    2. On the Request tab, set the ID location property to LocalEnvironment/TCPIP/Input/ConnectionDetails/Id.
    3. On the Advanced tab, set the Close connection property to After data has been sent.
  5. Save the message flow.

ac67440_.htm | Last updated 2017-07-17 12:45:00