From 36a45e1e1be1a15f569180dfe96164c3b89565c1 Mon Sep 17 00:00:00 2001 From: Justin Bertram Date: Wed, 29 Apr 2026 22:00:52 -0500 Subject: [PATCH] ARTEMIS-5996 fix examples --- .../artemis/jms/example/StompDualAuthenticationExample.java | 1 + .../jms/example/StompEmbeddedWithInterceptorExample.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/protocols/stomp/stomp-dual-authentication/src/main/java/org/apache/activemq/artemis/jms/example/StompDualAuthenticationExample.java b/examples/protocols/stomp/stomp-dual-authentication/src/main/java/org/apache/activemq/artemis/jms/example/StompDualAuthenticationExample.java index 83464942..6026d1d1 100644 --- a/examples/protocols/stomp/stomp-dual-authentication/src/main/java/org/apache/activemq/artemis/jms/example/StompDualAuthenticationExample.java +++ b/examples/protocols/stomp/stomp-dual-authentication/src/main/java/org/apache/activemq/artemis/jms/example/StompDualAuthenticationExample.java @@ -68,6 +68,7 @@ public static void main(final String[] args) throws Exception { String text = "Hello, world from Stomp!"; String message = "SEND\n" + "destination: exampleQueue\n" + + "destination-type: ANYCAST\n" + "\n" + text + END_OF_FRAME; diff --git a/examples/protocols/stomp/stomp-embedded-interceptor/src/main/java/org/apache/activemq/artemis/jms/example/StompEmbeddedWithInterceptorExample.java b/examples/protocols/stomp/stomp-embedded-interceptor/src/main/java/org/apache/activemq/artemis/jms/example/StompEmbeddedWithInterceptorExample.java index fd661b9d..ed3a0d18 100644 --- a/examples/protocols/stomp/stomp-embedded-interceptor/src/main/java/org/apache/activemq/artemis/jms/example/StompEmbeddedWithInterceptorExample.java +++ b/examples/protocols/stomp/stomp-embedded-interceptor/src/main/java/org/apache/activemq/artemis/jms/example/StompEmbeddedWithInterceptorExample.java @@ -52,7 +52,8 @@ public static void main(final String[] args) throws Exception { // jms.queue.exampleQueue address with a text body String text = "Hello World from Stomp 1.2 !"; String message = "SEND\n" + - "destination:exampleQueue" + + "destination:exampleQueue\n" + + "destination-type:ANYCAST\n" + "\n" + text + END_OF_FRAME;