sendToQueue procedure

Sends a message to a queue.

Syntax

PROCEDURE sendToQueue.
DEFINE INPUT PARAMETER queueName AS CHARACTER. 
DEFINE INPUT PARAMETER message AS HANDLE. 
DEFINE INPUT PARAMETER priority AS INTEGER. 
DEFINE INPUT PARAMETER timeToLive AS DECIMAL. 
DEFINE INPUT PARAMETER deliveryMode AS CHARACTER. 

Parameters

queueName
The queue to which the message is sent.
message
The Message object.
priority
The message priority (optional): 0–9. If Unknown value (?), the session default is used.
timeToLive
Time to live, in milliseconds (optional). If Unknown value (?), the session default is used.
deliveryMode
The delivery mode (optional): PERSISTENT, NON_PERSISTENT, NON_PERSISTENT_ASYNC, or UNKNOWN (?). If Unknown value (?), the session default is used.

Applies to

Session objects

Notes

  • If the sending is in reply to a received message, queueName can be the ReplyTo field obtained from the original message.
  • This procedure executes remotely on the Progress OpenEdge JMS Adapter.

See also

browseQueue procedure, receiveFromQueue procedure, #rfi1387308546839

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.