Try OpenEdge Now
skip to main content
Messaging and ESB
Programming for the OpenEdge Adapter for SonicMQ with the ABL - JMS API : PTP message example : Sending messages to the queue
 

Sending messages to the queue

The application sends a message to the queue using the sendToQueueprocedure, as follows:

Sending messages to the queue

DEFINE VARIABLE hMessage AS HANDLE NO-UNDO.
/* Code to create message */
RUN sendToQueue IN hPTPSession ("myQueue", hMessage, ?, ?, ?)
Note: The queue must be created on the Sonic Management Console.