Try OpenEdge Now
skip to main content
Messaging and ESB
Understanding the Messaging Models : Using PTP messaging
 

Using PTP messaging

PTP messaging allows you to produce a message to be consumed by one receiver. The receiver can specify how many messages to consume at a time, and define a threshold specifying when to consume messages. Also, the receiver can look at the contents of messages on a queue without consuming the messages. Undelivered messages remain on a queue even when there are no receivers. The messages are removed from the queue according to the message's time-to-live.
The following general steps outline how to exchange messages from an OpenEdge application to a SonicMQ Broker for a PTP session:
Note: PTP messaging requires a queue.
1. Create a session procedure and connect to a SonicMQ Broker.
2. Send messages to a PTP queue.
3. Receive messages from a PTP queue.
4. Receive a reply.
5. Delete objects.
* Creating a session procedure and connecting to a SonicMQ Broker
* Sending messages to a PTP queue
* Receiving messages from a PTP queue
* Receiving a reply
* Temporary queues
* Deleting objects
* Methods unique to Point-to-Point messaging