TsgcWSPClient_STOMP_RabbitMQMethods › SubscribeQueueOutside

SubscribeQueueOutside Method

Subscribes to a queue already declared outside STOMP (e.g. via AMQP) using the /amq/queue/name prefix.

Syntax

procedure SubscribeQueueOutside(const aQueue: String; const aDurable: Boolean = True; const aAutoDelete: Boolean = False; const aExclusive: Boolean = False; const aACK: TsgcSTOMPACK = ackAuto; const aOptions: TsgcWSRabbitMQSTOMP_Queue_Options = nil);

Parameters

NameTypeDescription
aQueueconst StringName of an existing AMQP queue declared outside the STOMP gateway (for example through the management UI or by a native AMQP client). The component builds the destination as /amq/queue/aQueue.
aDurableconst BooleanInformational flag forwarded as a header; the queue itself is not declared by this call.
aAutoDeleteconst BooleanInformational flag forwarded as a header; the queue itself is not declared by this call.
aExclusiveconst BooleanInformational flag forwarded as a header; the queue itself is not declared by this call.
aACKconst TsgcSTOMPACKAcknowledgement mode: ackAuto, ackClient or ackClient-Individual. When not ackAuto the application must call ACK or NACK for every received message.
aOptionsconst TsgcWSRabbitMQSTOMP_Queue_OptionsOptional subscription-level x-arguments attached to the SUBSCRIBE frame. When nil the component Queue property is used.

Remarks

Use this method when the queue has been created by an AMQP client, the RabbitMQ management UI or a policy and must not be declared by the STOMP gateway. The queue must already exist before the SUBSCRIBE frame is sent; otherwise RabbitMQ returns an ERROR.

Example

sgcRabbitMQ.SubscribeQueueOutside('legacy.orders');

Back to Methods