Try OpenEdge Now
skip to main content
Messaging and ESB
Implementing Messaging : Working with messages : Sending messages to a queue

Sending messages to a queue

In the PTP domain, applications send messages to a queue. To send a message to a queue with Java–JMS, an application obtains a handle to a queue object, creates a Queue Sender object, and uses the queue sender to send messages. Sending a message to a queue with the ABL–JMS API involves these general steps:
1. The application calls the sendToQueue procedure in the ptpsession.p or jmssession.p object.
2. The application specifies the queue name as an INPUT parameter of type CHARACTER.
The application can set other sending parameters (such as persistency, timeToLive, and priority) in the Session object as a default for all the messages it sends, or it can set these parameters at each sendToQueue procedure call.