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 on the Progress OpenEdge JMS Adapter.

See also

browseQueue procedure, #rfi1387308547314, 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.