Try OpenEdge Now
skip to main content
Messaging and ESB
Programming for the OpenEdge Adapter for SonicMQ with the ABL - JMS API : Pub/Sub messaging example : Publishing to a topic
 

Publishing to a topic

An application uses the publish procedure to publish messages to a topic, as shown in the following example.

Publishing message to a topic

DEFINE VARIABLE hMessage AS HANDLE NO-UNDO.
/* Code to create message */
RUN publish IN hPubSubSession ("newTopic", hMessage, ?, ?, ?).