STOMP with ActiveMQ
Delphi 애플리케이션을 WebSocket 위의 STOMP로 Apache ActiveMQ에 연결하세요. 네이티브 코드에서 큐, 토픽, 지속 구독에 접근할 수 있어요.
Delphi 애플리케이션을 WebSocket 위의 STOMP로 Apache ActiveMQ에 연결하세요. 네이티브 코드에서 큐, 토픽, 지속 구독에 접근할 수 있어요.
Apache ActiveMQ에 맞춰진 STOMP 1.0 / 1.1 / 1.2 클라이언트예요. /topic/, /queue/ 및 브로커 고유 목적지 구독, ACK/NACK, 트랜잭션을 지원해요.
TsgcWSPClient_STOMP_ActiveMQ
STOMP 1.2 (ActiveMQ용)
Windows, macOS, Linux, iOS, Android
Professional / Enterprise
TsgcWebSocketClient와 짝지어 Authentication을 설정하고, /topic/ 또는 /queue/ 목적지를 구독하고, 텍스트 또는 바이너리 프레임을 발행하세요.
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 속성, 16개의 메서드, 6개의 이벤트 — 컴포넌트 레퍼런스에서 가져왔어요.
Published 속성: Client, Broker, Versions.
이벤트: OnActiveMQMessage, OnActiveMQReceipt.
Published 속성: HeartBeat.
Published 속성: Authentication.
이벤트: OnActiveMQConnected, OnActiveMQDisconnected, OnActiveMQError.
메서드: WriteData.
이 컴포넌트가 구현하는 프로토콜의 공인 출처예요.
컴포넌트 레퍼런스로 바로 이동하고, 바로 실행할 수 있는 데모 프로젝트를 받아보고, 체험판을 다운로드하세요.
| 데모 프로젝트 — Demos\Protocols\STOMP\ActiveMQ 바로 실행할 수 있는 예제 프로젝트예요. sgcWebSockets 패키지에 포함되어 있으니 아래에서 체험판을 다운로드해 보세요. | 열기 | |
| 기술 문서 (PDF) 이 컴포넌트의 기능, 빠른 시작, Delphi 및 C++ Builder 코드 샘플, 출처 참고 자료예요. | 열기 | |
| 사용자 설명서 (PDF) 라이브러리의 모든 컴포넌트를 다루는 종합 설명서예요. | 열기 |