TsgcWSPClient_STOMP_ActiveMQProperties › Guid

Guid Property

Unique identifier that binds this ActiveMQ STOMP subprotocol instance to its WebSocket or broker connection.

Syntax

property Guid: String read FGuid write FGuid;

Default Value

Auto-generated on component creation

Remarks

The Guid is assigned automatically in the constructor and is used internally to route frames between the TsgcWebSocketClient (or TsgcWSSTOMPBroker) and the matching STOMP subprotocol instance. It is not the STOMP session identifier: the broker returns that value inside the CONNECTED frame and it is delivered to the application through the Session parameter of OnActiveMQConnected. It is also unrelated to ActiveMQ_Options.ClientId, which is the JMS-level client identifier sent on the activemq.client-id CONNECT header. Do not modify Guid unless you are explicitly re-parenting the protocol component between connections.

Example


ShowMessage('Protocol Guid: ' + STOMP.Guid);

Back to Properties