You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jb...@apache.org on 2022/07/16 19:53:27 UTC

[activemq-artemis] branch main updated: NO-JIRA clarify JmsTemplate warning

This is an automated email from the ASF dual-hosted git repository.

jbertram pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/main by this push:
     new a0fb174c8f NO-JIRA clarify JmsTemplate warning
a0fb174c8f is described below

commit a0fb174c8f54f6a3ef32414732f50812531c45ae
Author: Justin Bertram <jb...@apache.org>
AuthorDate: Sat Jul 16 14:52:27 2022 -0500

    NO-JIRA clarify JmsTemplate warning
---
 docs/user-manual/en/perf-tuning.md | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/docs/user-manual/en/perf-tuning.md b/docs/user-manual/en/perf-tuning.md
index 5a9d4b8c42..5e1fdb7f72 100644
--- a/docs/user-manual/en/perf-tuning.md
+++ b/docs/user-manual/en/perf-tuning.md
@@ -217,13 +217,13 @@ from other providers (e.g. IBM or JRockit)
 
   > **Note:**
   >
-  > Some popular libraries such as the Spring JMS Template are known to use
-  > these anti-patterns. If you're using Spring JMS Template and you're getting
-  > poor performance you know why. Don't blame Apache ActiveMQ Artemis! The
-  > Spring JMS Template can only safely be used in an app server which caches
-  > JMS sessions (e.g. using JCA), and only then for sending messages. It
-  > cannot be safely be used for synchronously consuming messages, even in an
-  > app server.
+  > Spring's `JmsTemplate` is known to use this anti-pattern. It can only
+  > safely be used with a connection pool (e.g. in a Java EE application server
+  > using JCA), and even then it should only be used for sending messages. It
+  > cannot be safely be used for synchronously consuming messages, even with
+  > a connection pool. If you need a connection pool take a look at 
+  > [this](https://github.com/messaginghub/pooled-jms) which was forked from the
+  > ActiveMQ code-base into its own project with full support for JMS 2.
 
 - Avoid fat messages. Verbose formats such as XML take up a lot of space on the
   wire and performance will suffer as result. Avoid XML in message bodies if