Progress
External Program
Interfaces
Sending a Message 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 4GL–JMS API involves these general steps:
- The application calls the sendToQueue internal procedure in the
ptpsession.p
object.- The application specifies the queue name as a CHAR INPUT parameter.
The application can set other sending parameters (such as persistency, timeToLive, and priority) in the
ptpsession.p
object as a default for all the messages it sends, or it can set these parameters at each sendToQueue call.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |