STOMP with ActiveMQ
Connect your Delphi applications to Apache ActiveMQ using STOMP over WebSocket. Access queues, topics, and durable subscriptions from native code.
Connect your Delphi applications to Apache ActiveMQ using STOMP over WebSocket. Access queues, topics, and durable subscriptions from native code.
STOMP 1.0 / 1.1 / 1.2 client tuned for Apache ActiveMQ. Subscribe to /topic/, /queue/ and broker-specific destinations, ACK/NACK, transactions.
TsgcWSPClient_STOMP_ActiveMQ
STOMP 1.2 for ActiveMQ
Windows, macOS, Linux, iOS, Android
Professional / Enterprise
Pair with a TsgcWebSocketClient, set Authentication, subscribe to /topic/ or /queue/ destinations, publish text or binary frames.
uses
sgcWebSocket, sgcWebSocket_Protocol_STOMP_ActiveMQ_Client;
var
WSClient: TsgcWebSocketClient;
STOMP: TsgcWSPClient_STOMP_ActiveMQ;
begin
WSClient := TsgcWebSocketClient.Create(nil);
WSClient.Host := 'broker.example.com';
WSClient.Port := 61614;
STOMP := TsgcWSPClient_STOMP_ActiveMQ.Create(nil);
STOMP.Client := WSClient;
STOMP.Authentication.Enabled := True;
STOMP.Authentication.UserName := 'admin';
STOMP.Authentication.Password := 'admin';
STOMP.OnSTOMPConnected := STOMPConnected;
STOMP.OnSTOMPMessage := STOMPMessage;
WSClient.Active := True;
end;
procedure TForm1.STOMPConnected(Connection: TsgcWSConnection;
const Session, Server: string);
begin
STOMP.SubscribeQueue('orders');
STOMP.PublishQueue('orders', 'hello');
end;
9 published properties, 16 methods, 6 events — pulled from the component reference.
Published properties: Client, Broker, Versions.
Events: OnActiveMQMessage, OnActiveMQReceipt.
Published properties: HeartBeat.
Published properties: Authentication.
Events: OnActiveMQConnected, OnActiveMQDisconnected, OnActiveMQError.
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\ActiveMQ 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 |