This documentation is for WSO2 ESB version 4.5.0. View documentation for the latest release.

Configuring WSO2 ESB for TCP Transport

To enable the TCP transport for samples, simply open up the repository/conf/axis2.xml file in a text editor and add the following transport receiver configuration and sender configuration. TCP transport module is shipped with ESB by default.

<transportReceiver name="tcp">
    <parameter name="transport.tcp.port">6060</parameter>
</transportReceiver>

<transportSender name="tcp"/>

If you wish to use the sample Axis2 client to send TCP messages, you have to uncomment the TCP transport sender configuration in the following file:

samples/axis2Client/client_repo/conf/axis2.xml

For more information see Transports.