Publish messages to a topic
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
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:
- The application publishes messages through the publish procedure of the pubsubsession.p or jmssession.p object.
- The application specifies the topic name as an
INPUTparameter of typeCHARACTER.
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.