Try OpenEdge Now
skip to main content
Messaging and ESB
Implementing Messaging : Working with messages : Publishing messages to a topic
 

Publishing messages to a topic

In the Pub/Sub domain, applications publish messages to topics. To publish a message with Java–JMS, an application obtains a handle to a Topic object and creates a Publisher object. It then uses the Publisher Object to publish messages. Publishing a message to a topic with the ABL–JMS API involves these general steps:
1. The application publishes messages through the publishprocedure of the pubsubsession.p or jmssession.p object.
2. The application specifies the topic name as an INPUT parameter of type CHARACTER.
The application can set other sending parameters (such as persistency, timeToLive, and priority) in the Session object as a default for all the messages it sends, or it can set these parameters at each publish procedure call.