publish procedure
- Last Updated: August 26, 2021
- 1 minute read
- OpenEdge
- Version 12.2
publish procedure
Publishes a message to a topic.
Syntax
|
Parameters
- topicName
- The topic to which the message is published.
- message
- The Message object.
- priority
- The message priority (optional): 0–9. Session default is used if UNKNOWN.
- timeToLive
- Time to live, in milliseconds (optional). Session default is used if UNKNOWN.
- deliveryMode
- The delivery mode (optional):
PERSISTENT,NON_PERSISTENT,NON_PERSISTENT_ASYNC,DISCARDABLE, orUNKNOWN(?). Session default is used if UNKNOWN.
Applies to
Session objects
Notes
- If
the publication is in reply to a received message, topicName can
be the
ReplyTofield obtained from the original message. - This procedure executes remotely on the Progress OpenEdge JMS Adapter.
See also
cancelDurableSubscription procedure, #rfi1387308566559, subscribe procedure
For more information, see the Publishing messages to a topic, the Subscribing to a topic, the Durable subscriptions, and the Methods unique to Pub/Sub messaging.
For an example, see the Pub/Sub messaging example.