TsgcWSPClient_STOMP_RabbitMQProperties › Options

Options Property

Extra STOMP-level settings sent in the CONNECT frame, such as the RabbitMQ virtual host used to select the broker logical namespace.

Syntax

property Options: TsgcWSSTOMP_Options read FOptions write SetOptions;

Default Value

VirtualHost='/'

Remarks

The Options container exposes STOMP-specific switches that do not belong to Authentication, HeartBeat or Versions. Currently it carries VirtualHost, which is emitted as the host header of the CONNECT (or STOMP) frame and is mandatory in STOMP 1.1 and 1.2. RabbitMQ uses it to select the target vhost configured in the server: leave it at the default '/' (the built-in root vhost) for most installations, or change it to the vhost name (e.g. /test, my-vhost) when the user account has permissions on a non-default namespace. The value is independent from the TCP host set on Client/Broker.

Example


oRabbit := TsgcWSPClient_STOMP_RabbitMQ.Create(nil);
oRabbit.Options.VirtualHost := '/';

Back to Properties