STOMP with RabbitMQ
Connect your Delphi applications to RabbitMQ using STOMP over WebSocket. Publish messages, subscribe to queues, and integrate with enterprise messaging infrastructure.
Connect your Delphi applications to RabbitMQ using STOMP over WebSocket. Publish messages, subscribe to queues, and integrate with enterprise messaging infrastructure.
STOMP 1.0 / 1.1 / 1.2 client tuned for the RabbitMQ Web-STOMP plugin. Topics, queues, externally-declared queues, temporary reply queues, transactions.
TsgcWSPClient_STOMP_RabbitMQ
STOMP 1.2 via RabbitMQ Web-STOMP
Windows, macOS, Linux, iOS, Android
Professional / Enterprise
Pair with a TsgcWebSocketClient, set Authentication and a virtual host in Options, subscribe to /topic/ /queue/ /amq/queue/ or /temp-queue/ destinations.
uses
sgcWebSocket, sgcWebSocket_Protocol_STOMP_RabbitMQ_Client;
var
WSClient: TsgcWebSocketClient;
STOMP: TsgcWSPClient_STOMP_RabbitMQ;
begin
WSClient := TsgcWebSocketClient.Create(nil);
WSClient.Host := 'rabbit.example.com';
WSClient.Port := 15674;
WSClient.Options.Parameters := '/ws';
STOMP := TsgcWSPClient_STOMP_RabbitMQ.Create(nil);
STOMP.Client := WSClient;
STOMP.Authentication.Enabled := True;
STOMP.Authentication.UserName := 'guest';
STOMP.Authentication.Password := 'guest';
STOMP.OnSTOMPConnected := STOMPConnected;
STOMP.OnSTOMPMessage := STOMPMessage;
WSClient.Active := True;
end;
8 published properties, 25 methods, 6 events — pulled from the component reference.
Published properties: Client, Broker, Versions.
Events: OnRabbitMQMessage, OnRabbitMQReceipt.
Published properties: HeartBeat.
Published properties: Authentication.
Events: OnRabbitMQConnected, OnRabbitMQDisconnected, OnRabbitMQError.
Methods: WriteData.
Authoritative sources for the protocols this component implements.
Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.
| Demo Project — Demos\Protocols\STOMP\RabbitMQ Ready-to-run example project. Ships inside the sgcWebSockets package — download the trial below. | Open | |
| Technical Document (PDF) Features, quick start, code samples for Delphi & C++ Builder and primary-source references — this component only. | Open | |
| User Manual (PDF) Comprehensive manual covering every component in the library. | Open |