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
Fixes: #3201
The `AbstractMessageListenerContainer` does set `this.acknowledgeMode = AcknowledgeMode.MANUAL`
for async mode, but only after `this.acknowledgeMode` is propagated down to the `messageListener`.
Such a misconfiguration leads into unnecessary warning regarding wrong ack mode.
* Change the order how `this.acknowledgeMode` is modified in the `AbstractMessageListenerContainer`
before it is propagated down to the `messageListener`
(cherry picked from commit e4f8f87)
Copy file name to clipboardExpand all lines: spring-rabbit/src/main/java/org/springframework/amqp/rabbit/listener/AbstractMessageListenerContainer.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1213,11 +1213,11 @@ public void afterPropertiesSet() {
1213
1213
+ "transactional channel. Either use a different AcknowledgeMode or make sure " +
1214
1214
"channelTransacted=false");
1215
1215
validateConfiguration();
1216
-
initialize();
1217
1216
checkMicrometer();
1218
-
if (this.isAsyncReplies() && !AcknowledgeMode.MANUAL.equals(this.acknowledgeMode)) {
1217
+
if (isAsyncReplies() && !AcknowledgeMode.MANUAL.equals(this.acknowledgeMode)) {
0 commit comments