Skip to content

Commit fc3c8d2

Browse files
authored
spring-projectsGH-8668: AMQP Docs for Exclusive and S-A Consumers
Resolves spring-projects#8668 **cherry-pick to all supported branches**
1 parent eb94433 commit fc3c8d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/reference/asciidoc/amqp.adoc

+2
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ However, the return value from a `@RabbitListener` method is treated as an AMQP
285285
Therefore, such an approach cannot be used together with a `@Publisher`, so a `@Payload` annotation with respective SpEL expression against method arguments is a recommended way for this combination.
286286
See more information about the `@Publisher` in the <<./message-publishing.adoc#publisher-annotation, Annotation-driven Configuration>> section.
287287

288+
IMPORTANT: When using exclusive or single-active consumers in the listener container, it is recommended that you set the container property `forceStop` to `true`.
289+
This will prevent a race condition where, after stopping the container, another consumer could start consuming messages before this instance has fully stopped.
288290

289291
[[amqp-debatching]]
290292
==== Batched Messages

0 commit comments

Comments
 (0)