This is an automated email from the ASF dual-hosted git repository.

Croway pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 60c7b662681effd975446e721a526869d8a29ca9
Author: croway <[email protected]>
AuthorDate: Wed Nov 25 18:07:33 2026 +0100

    CAMEL-27009: upgrade guide and graceful shutdown page for the bounded 
listener container stop of camel-jms and camel-spring-rabbitmq
---
 .../ROOT/pages/camel-4x-upgrade-guide-4_24.adoc       | 19 +++++++++++++++++++
 .../modules/ROOT/pages/graceful-shutdown.adoc         |  5 ++++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git 
a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
index d1450550a0a7..2a4d845edeaf 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc
@@ -272,6 +272,25 @@ client library) is now a failed poll, as an exception, and 
the consumer polls ag
 scheduler, it also ended the scheduled task. See the section "camel-core - a 
VirtualMachineError fails the exchange,
 and Camel does not recover from it".
 
+=== camel-jms, camel-spring-rabbitmq - suspending or stopping a consumer waits 
at most shutdownAwaitTermination for its listener container
+
+Suspending or stopping a consumer of camel-jms (and of the components built on 
it, such as camel-activemq,
+camel-activemq6 and camel-amqp) or of camel-spring-rabbitmq now waits for its 
listener container to stop at most the
+`shutdownAwaitTermination` of the `ExecutorServiceManager` (10 seconds by 
default), or until the waiting thread is
+interrupted, as the graceful shutdown does when its timeout elapses. 
Previously, it waited without bound when the
+broker did not answer: for the `callTimeout` of ActiveMQ Artemis (30 seconds 
by default), or for the
+`channelRpcTimeout` of the RabbitMQ client (10 minutes by default), past the 
shutdown timeout.
+
+When that time elapses, the consumer logs a WARN, the listener container is 
stopped and destroyed in the background,
+and the consumer creates a new listener container when it is resumed or 
started again. A stop that returns then no
+longer means that the listener container has released its connection.
+
+The stop of the listener container runs on a thread pool of the component: the 
`AsyncStartStopListener` thread pool of
+camel-jms, and a new `SpringRabbitMQStopListenerContainer` thread pool of 
camel-spring-rabbitmq. camel-jms with
+`asyncStopListener=true` is unchanged. A camel-spring-rabbitmq 
`shutdownTimeout` above that bound no longer extends the
+suspend: raise the `shutdownAwaitTermination` too 
(`camelContext.getExecutorServiceManager()
+.setShutdownAwaitTermination(...)`) if the suspend must wait longer for the 
messages in progress.
+
 === camel-core - a to with an expression in its endpoint uri logs a WARN
 
 A `to` resolves its endpoint once, when the route starts, so 
`to("jms:queue:${header.queue}")` sends every message to
diff --git a/docs/user-manual/modules/ROOT/pages/graceful-shutdown.adoc 
b/docs/user-manual/modules/ROOT/pages/graceful-shutdown.adoc
index db014851d1c7..ec93539fe989 100644
--- a/docs/user-manual/modules/ROOT/pages/graceful-shutdown.adoc
+++ b/docs/user-manual/modules/ROOT/pages/graceful-shutdown.adoc
@@ -143,7 +143,10 @@ WARN DefaultShutdownStrategy - The suspend of the consumer 
of route: route1 (con
 ---------------------------------
 
 Set the timeouts of the client that the component uses (such as its 
connection, read or request timeouts) so that its
-calls return when the remote system stops answering.
+calls return when the remote system stops answering. Some consumers bound such 
calls themselves: the
+xref:components::jms-component.adoc[JMS] and 
xref:components::spring-rabbitmq-component.adoc[Spring RabbitMQ] consumers
+wait for their listener container to stop at most the 
`shutdownAwaitTermination` of the `ExecutorServiceManager`
+(10 seconds by default), and let it stop in the background after that.
 
 === JMX managed
 

Reply via email to