These steps outline the main structural components of most application programs that communicate using TIBCO FTL.
Procedure
Task A
Initializing TIBCO FTL Objects
-
Create a realm object. (C programs must first open the top-level
FTL object, and then a realm object.)
Task B
Defining Callbacks
-
Define callbacks to process inbound messages.
-
Define callbacks to process advisory messages, as needed.
-
Define callbacks to handle out-of-band notifications.
-
Define callbacks for timer events, timer completion, and queue completion, as needed.
Task C
Sending Messages
-
Define methods to construct outbound messages.
-
Instantiate endpoints as publisher objects.
-
Arrange to call the send methods of publishers.
Programs usually call send methods in the context of a data-generation loop, or in the context of message callbacks, or both. (You can use timer callbacks to implement a data-generation loop.)
Task D
Receiving Messages
-
Instantiate endpoints as subscriber objects. (With a durable, supply a subscriber name.)
-
Create event queues, and add each subscriber to an event queue.
-
Start a loop to dispatch event queues.
Task E
Recovery and Clean-Up
-
Recover from administrative disable (see
Recovery of a Disabled Process Restart versus Reopen the Realm).
-
Exit cleanly (see
Clean-Up).
Copyright © Cloud Software Group, Inc. All rights reserved.