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`
**Auto-cherry-pick to `3.2.x`**
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
@@ -1218,11 +1218,11 @@ public void afterPropertiesSet() {
1218
1218
+ "transactional channel. Either use a different AcknowledgeMode or make sure " +
1219
1219
"channelTransacted=false");
1220
1220
validateConfiguration();
1221
-
initialize();
1222
1221
checkMicrometer();
1223
-
if (this.isAsyncReplies() && !AcknowledgeMode.MANUAL.equals(this.acknowledgeMode)) {
1222
+
if (isAsyncReplies() && !AcknowledgeMode.MANUAL.equals(this.acknowledgeMode)) {
0 commit comments