File tree 1 file changed +8
-1
lines changed
spring-jms/src/main/java/org/springframework/jms/listener 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 91
91
* {@code Sessions} and/or the {@code TaskExecutor} does not pool threads (check
92
92
* your configuration!). Note that dynamic scaling only really makes sense for a
93
93
* queue in the first place; for a topic, you will typically stick with the default
94
- * number of 1 consumer, else you'd receive the same message multiple times on
94
+ * number of 1 consumer, otherwise you'd receive the same message multiple times on
95
95
* the same node.
96
96
*
97
+ * <p><b>Note: Don't use Spring's {@link org.springframework.jms.connection.CachingConnectionFactory}
98
+ * in combination with dynamic scaling.</b> Ideally, don't use it with a message
99
+ * listener container at all, since it is generally preferable to let the
100
+ * listener container itself handle appropriate caching within its lifecycle.
101
+ * Also, stopping and restarting a listener container will only work with an
102
+ * independent, locally cached Connection - not with an externally cached one.
103
+ *
97
104
* <p><b>It is strongly recommended to either set {@link #setSessionTransacted
98
105
* "sessionTransacted"} to "true" or specify an external {@link #setTransactionManager
99
106
* "transactionManager"}.</b> See the {@link AbstractMessageListenerContainer}
You can’t perform that action at this time.
0 commit comments