TsgcWSPClient_STOMP_ActiveMQProperties › Options

Options Property

Generic STOMP-level settings sent in the CONNECT frame, such as the virtual host header. For ActiveMQ-specific JMS extensions use ActiveMQ_Options.

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. ActiveMQ accepts the header and maps it to the broker name configured in activemq.xml; for single-broker deployments the default '/' works unchanged. Change it only if the broker has been renamed (<broker brokerName="mybroker">) or if a network-of-brokers topology requires targeting a specific node. The value is independent from the TCP host set on Client/Broker. Vendor extensions such as activemq.client-id, prefetch or durable topic flags are exposed on ActiveMQ_Options and on the subscribe/publish option classes.

Example


STOMP.Options.VirtualHost := '/';

Back to Properties