In addition to Channels, TIBCO BusinessEvents can also communicate with other data sources using TCP. You can create a local TCP server and a TCP client so that TIBCO BusinessEvents can communicate with data sources not otherwise available through channels, using TCP.
TCP communication is available as a Communication Built-in Function in the Catalog Functions view. Using this set of functions, follow these steps to communicate with TCP servers:
Procedure
Create a local TCP server in a startup function using
TCP.createLocalServer().
Connect to a Remote TCP server as a client using.
TCP.connectToRemoteServer().
Register the session listener using
TCP.registerSessionListener() .
Start the local server using
TCP.startLocalServer().
Create callback rule functions and register them as callbacks to the TCP listeners. These callback rule functions create events that are sent to an appropriate destination.