Try OpenEdge Now
skip to main content
Messaging and ESB
Understanding the Messaging Models : Using PUB/SUB messaging : Receiving a reply
 

Receiving a reply

The following general steps outline how an OpenEdge application receives a reply:
1. The application calls the requestReplyprocedure in the Session object with the message handle, the name of a destination (a queue name for PTP), and the Message Consumer handle as input parameters.
2. The application executes a WAIT–FOR statement (or calls a waitForMessages procedure), which waits for the replies to arrive while processing other ABL events.
3. The Message Consumer object handles the replies.
4. The application deletes the replies after it finishes using them.