You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: org.springframework.jms/src/main/java/org/springframework/jms/listener/DefaultMessageListenerContainer.java
+8-16Lines changed: 8 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -297,9 +297,10 @@ public void setConcurrency(String concurrency) {
297
297
* to scale the consumption of messages coming in from a queue. However,
298
298
* note that any ordering guarantees are lost once multiple consumers are
299
299
* registered. In general, stick with 1 consumer for low-volume queues.
300
-
* <p><b>Do not raise the number of concurrent consumers for a topic.</b>
301
-
* This would lead to concurrent consumption of the same message,
302
-
* which is hardly ever desirable.
300
+
* <p><b>Do not raise the number of concurrent consumers for a topic,
301
+
* unless vendor-specific setup measures clearly allow for it.</b>
302
+
* With regular setup, this would lead to concurrent consumption
303
+
* of the same message, which is hardly ever desirable.
303
304
* <p><b>This setting can be modified at runtime, for example through JMX.</b>
304
305
* @see #setMaxConcurrentConsumers
305
306
*/
@@ -336,9 +337,10 @@ public final int getConcurrentConsumers() {
336
337
* to scale the consumption of messages coming in from a queue. However,
337
338
* note that any ordering guarantees are lost once multiple consumers are
338
339
* registered. In general, stick with 1 consumer for low-volume queues.
339
-
* <p><b>Do not raise the number of concurrent consumers for a topic.</b>
340
-
* This would lead to concurrent consumption of the same message,
341
-
* which is hardly ever desirable.
340
+
* <p><b>Do not raise the number of concurrent consumers for a topic,
341
+
* unless vendor-specific setup measures clearly allow for it.</b>
342
+
* With regular setup, this would lead to concurrent consumption
343
+
* of the same message, which is hardly ever desirable.
342
344
* <p><b>This setting can be modified at runtime, for example through JMX.</b>
343
345
* @see #setConcurrentConsumers
344
346
*/
@@ -470,16 +472,6 @@ public final int getIdleTaskExecutionLimit() {
470
472
}
471
473
}
472
474
473
-
@Override
474
-
protectedvoidvalidateConfiguration() {
475
-
super.validateConfiguration();
476
-
synchronized (this.lifecycleMonitor) {
477
-
if (isSubscriptionDurable() && this.concurrentConsumers != 1) {
478
-
thrownewIllegalArgumentException("Only 1 concurrent consumer supported for durable subscription");
0 commit comments