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: src/reference/asciidoc/amqp.adoc
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -252,6 +252,10 @@ In that regard, it is more similar to the JMS message-driven channel adapter.
252
252
Starting with version 5.5, the `AmqpInboundChannelAdapter` can be configured with an `org.springframework.amqp.rabbit.retry.MessageRecoverer` strategy which is used in the `RecoveryCallback` when the retry operation is called internally.
253
253
See `setMessageRecoverer()` JavaDocs for more information.
254
254
255
+
IMPORTANT: When using exclusive or single-active consumers in the listener container, it is recommended that you set the container property `forceStop` to `true`.
256
+
This will prevent a race condition where, after stopping the container, another consumer could start consuming messages before this instance has fully stopped.
257
+
For this option to be available, the Spring AMQP dependency has to be explicitly upgraded to the latest version of `2.4.x` generation (this is automatic with Boot 2.6.x, 2.7.x).
0 commit comments