From e7b740c67f93d562d0edee7aa4e45ec65c56d2e9 Mon Sep 17 00:00:00 2001 From: coursar Date: Tue, 30 Apr 2024 19:34:15 +0300 Subject: [PATCH] Fix "Example using the simplified API and injection" fixes /jakartaee/messaging#337 --- spec/src/main/asciidoc/messaging-spec.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/src/main/asciidoc/messaging-spec.adoc b/spec/src/main/asciidoc/messaging-spec.adoc index 11a50b9..2508c2c 100644 --- a/spec/src/main/asciidoc/messaging-spec.adoc +++ b/spec/src/main/asciidoc/messaging-spec.adoc @@ -5828,7 +5828,7 @@ private JMSContext context; private Queue dataQueue; public void sendMessageNew(String body) { - context.send(dataQueue, body); + context.createProducer().send(dataQueue, body); } ----