RPG Sample Programs
This section describes the IBM RPG sample programs for TIBCO EMS messaging.
Type of EMS Sample | RPG Source Filename and Short Name | Description |
---|---|---|
Asynchronous Message Consumer | tibemsAsyncMsgConsumer
SXJRAMC |
An example demonstrating the use of an asynchronous message consumer, using C functions, operating on non-typed connections and sessions.
This sample registers a listener on the specified topic or queue, and prints all messages asynchronously received on that destination. The destination (specified as a parameter) must exist in the topics or queues configuration files, or the configuration files can create the dynamic of that destination. The sample configuration distributed with TIBCO Enterprise Message Service can create all the topics and queues. |
Queue Browser | tibemsBrowser
SXJRBR |
A simple example demonstrating the use of the queue browsers, using C functions, operating on non-typed connections and sessions. |
Durable Topic Subscriber | tibemsDurable
SXJRDTSB |
A simple durable topic subscriber.
If started with -unsubscribe parameter, it unsubscribes the specified durable subscriber, and exits. Otherwise, it creates a durable subscriber on the specified topic, and receives and prints all messages published to that topic. |
Message Consumer | tibemsMsgConsumer
SXJRMC |
An example demonstrating use of the message consumer, using C functions, operating on non-typed connections and sessions.
This sample synchronously consumes and prints all messages received on the specified topic or queue. The destination (specified as a parameter) must exist in the topics or queues configuration files, or the configuration files can create the dynamic of that destination. Sample configuration distributed with TIBCO Enterprise Message Service can create all the topics and queues. |
Message Producer | tibemsMsgProducer
SXJRMP |
An example demonstrating the use of the message producer, using C functions, operating on non-typed connections and sessions.
This sample sends one or more text messages to the specified topic or queue. The topic or queue (specified as a parameter) must exist in the topics or queues configuration files, or the configuration files can create the dynamic of that destination. The sample configuration distributed with TIBCO Enterprise Message Service can create all the topics and queues. |