Try OpenEdge Now
skip to main content
Messaging and ESB
ABL - JMS API Reference : receiveFromQueue procedure
 

receiveFromQueue procedure

Receives messages from a queue.

Syntax

PROCEDURE receiveFromQueue.
DEFINE INPUT PARAMETER queueName AS CHARACTER.
DEFINE INPUT PARAMETER messageSelector AS CHARACTER.
DEFINE INPUT PARAMETER messageConsumer AS HANDLE.

Parameters

queueName
The queue from which the messages are received.
messageSelector
A message selector. If UNKNOWN, receives all messages.
messageConsumer
A Message Consumer object, which handles the messages asynchronously.

Applies to

Session objects

Notes

*The messages are handled asynchronously by the messageConsumer procedure.
*This procedure executes remotely (sends a message to the OpenEdge Adapter for SonicMQ).

See also

browseQueue procedure, receiveFromQueue procedure, sendToQueue procedure
For more information, see theSending messages to a queue, the Receiving messages from a queue, and the Methods unique to Point-to-Point messaging.
For an example, see the PTP message example.