Try OpenEdge Now
skip to main content
Messaging and ESB
Messaging Examples : Pub/Sub messaging examples
 

Pub/Sub messaging examples

The Pub/Sub examples consist of sets of subscribers and publishers. You should run each messaging example interactively from its own window. Launch the subscriber first, because the message is discarded if the publisher publishes the message before there are any subscribers to the topic (or any durable subscriptions).
The examples include:
*Publishing and subscribing with a TextMessage
*Publishing with message properties and subscribing selectively
*Publishing with a reply handle, subscribing, and receivingan automatic reply
*Publishing, receiving, and processing a StreamMessage
*Publishing, receiving, and parsing an XMLMessage
*Publishing, subscribing, and receiving an XML document ina BytesMessage
*Publishing, subscribing, and receiving the customer tablein a StreamMessage
*Publishing and receiving a group of messages in a transaction
*Installing an error handler to handle an asynchronous error
*Installing an error handler for synchronous errors
* Publishing and subscribing with a TextMessage
* Publishing with message properties and subscribing selectively
* Publishing with a reply handle, subscribing, and receiving an automatic reply
* Publishing, receiving, and processing a StreamMessage
* Publishing, receiving, and parsing an XMLMessage
* Publishing, subscribing, and receiving an XML document in a BytesMessage
* Publishing, subscribing, and receiving the customer table in a StreamMessage
* Publishing and receiving a group of messages in a transaction
* Installing an error handler to handle an asynchronous error
* Installing an error handler for synchronous errors