TsgcWSPClient_STOMP_RabbitMQ › Methods › PublishQueueOutside
Publishes a message to an externally declared queue using the /amq/queue/name prefix.
procedure PublishQueueOutside(const aQueue, aText: String; const aContentType: String = CS_TEXT_PLAIN; const aTransaction: String = ''; const aHeaders: TStrings = nil);
| Name | Type | Description |
|---|---|---|
aQueue | const String | Name of an existing AMQP queue declared outside the STOMP gateway. The component builds the destination as /amq/queue/aQueue. |
aText | const String | Message body to publish. |
aContentType | const String | MIME content-type sent as the content-type header. Defaults to text/plain. |
aTransaction | const String | Optional transaction identifier. When supplied, the SEND frame is buffered under the named transaction and only delivered on commit. |
aHeaders | const TStrings | Optional application headers appended to the SEND frame; each item must be formatted as name:value. |
Use this method to deliver messages to a queue that was declared through AMQP, the management UI or a policy. The queue must already exist; the STOMP gateway does not declare it on publish.
sgcRabbitMQ.PublishQueueOutside('legacy.orders', 'order-42');