Progress
External Program
Interfaces


Publishing a Message 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 and then uses the publisher to publish messages.

With the 4GL–JMS implementation, an application publishes messages through the publish internal procedure of the pubsubsession.p object. The topic name is specified as a CHAR INPUT parameter. Other publish parameters (such as persistency, timeToLive, and priority) can be set in the pubsubsession.p object as a default for all the published messages or can be set at each publish call.

NOTE: If a message being published to a topic has a delivery mode of DISCARDABLE and the destination topic queue is full, the message is automatically discarded.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095