Using TIBCO FTL in TIBCO BusinessEvents

TIBCO BusinessEvents makes use of event objects to communicate with TIBCO FTL. For maximum performance, you must have the TIBCO FTL application, define endpoints, transport names, define whether the transports will send or receive, and figure out the format.

The format on a given endpoint provides you to have different message formats passing through that endpoint, which the port will listen to.

A port is where the server runs on. A certain format is given and you can define it in the TIBCO FTL administration console. You can then use the administration console commands to place the configuration into a JSON file.

To use TIBCO FTL within TIBCO BusinessEvents, first install TIBCO FTL. Complete the following steps to start the TIBCO FTL server and upload the TIBCO FTL channel example definitions into your TIBCO BusinessEvents project:

Procedure

  1. Change dir to ${TIBCO_HOME}\ftl\${ftl.version}\bin.
  2. Start the FTL Realm Server by using tibrealmserver.bat.
  3. To set up endpoints, message formats as well as the subscribers and publishers associated with TIBCO BusinssEvents, upload the realm definition via tibrealmadmin.bat -rs http://localhost:8085 -ur ${TIBCO_HOME}\be\${be.version}\examples\ftl\ftl-example.json.
  4. Point your browser URL to http://localhost:8085 to see the TIBCO FTL administration console.
    To add the realm definition to a JSON file, the following command can be used, but it is not necessary for startup: tibrealmadmin.bat http://localhost:8083 -dr ${TIBCO_HOME}\be\${be.version}\examples\ftl\ftl-example.json.

    After you start the TIBCO FTL server and upload the TIBCO FTL channel example definitions, and when you will trigger an event using the readme.html file provided in the FTL Example, the FTLRequestEvent.event gets triggered. This event performs the task of creating an FTL message using the fields and the values defined in the HTML readme file: {TIBCO_HOME}\be\examples\standard\FTL\readme.html.

    The request is triggered, it triggers the SendMessageRule.rule send message rule. The send message rule prompts the TIBCO FTL publisher to publish messages in the TIBCO FTL channel.

    When the send message rule is triggered, the message arrives in the FTL channel. The subscriber is already listening to that particular endpoint. Therefore, the subscriber receives the message. When the subscriber receives the message, it converts the message into an event.

    The conversion of the TIBCO FTL message into an event triggers the TIBCO FTL Rules.ReceiveMessage.rule response event. The response event then prints all of the messages from the subscriber. Finally, the event is consumed.

    Note: For more information on the API for using TIBCO FTL in TIBCO BusinessEvents, see TIBCO BusinessEvents® Online Reference.