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 acdff91b86b5002c4333588da8fcfd0b680f0bf0 Author: croway <[email protected]> AuthorDate: Wed Nov 25 18:18:29 2026 +0100 CAMEL-27009: camel-jms docs - a destroyed listener container ends its non-durable topic subscriptions; the listener-thread suspend is not bounded --- .../resources/org/apache/camel/catalog/docs/jms-component.adoc | 4 +++- components/camel-jms/src/main/docs/jms-component.adoc | 4 +++- docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc | 5 ++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/jms-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/jms-component.adoc index 682fe3b5c441..4814fb5e2e1c 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/jms-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/jms-component.adoc @@ -1192,7 +1192,9 @@ react to an interrupt. The consumer waits for its listener container to stop up the `ExecutorServiceManager` (10 seconds by default), or until the thread that waits is interrupted (as the graceful shutdown does when its timeout elapses). It then logs a WARN and no longer uses that listener container: the listener container is stopped and destroyed in the background, once the call returns, and the consumer creates a -new one when it is resumed or started again. +new one when it is resumed or started again. A listener container that is destroyed ends its non-durable topic +subscriptions: the messages published to the topic until the new listener container subscribes do not reach the +consumer. Use a durable subscription when they must. With `asyncStopListener=true`, stopping the consumer does not wait for its listener container. Stopping a route or the CamelContext suspends the consumer first, though (unless the route has `shutdownRoute` set to `Defer`), and the suspend diff --git a/components/camel-jms/src/main/docs/jms-component.adoc b/components/camel-jms/src/main/docs/jms-component.adoc index 682fe3b5c441..4814fb5e2e1c 100644 --- a/components/camel-jms/src/main/docs/jms-component.adoc +++ b/components/camel-jms/src/main/docs/jms-component.adoc @@ -1192,7 +1192,9 @@ react to an interrupt. The consumer waits for its listener container to stop up the `ExecutorServiceManager` (10 seconds by default), or until the thread that waits is interrupted (as the graceful shutdown does when its timeout elapses). It then logs a WARN and no longer uses that listener container: the listener container is stopped and destroyed in the background, once the call returns, and the consumer creates a -new one when it is resumed or started again. +new one when it is resumed or started again. A listener container that is destroyed ends its non-durable topic +subscriptions: the messages published to the topic until the new listener container subscribes do not reach the +consumer. Use a durable subscription when they must. With `asyncStopListener=true`, stopping the consumer does not wait for its listener container. Stopping a route or the CamelContext suspends the consumer first, though (unless the route has `shutdownRoute` set to `Defer`), and the suspend 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 2a4d845edeaf..4692353a8c92 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 @@ -283,7 +283,10 @@ broker did not answer: for the `callTimeout` of ActiveMQ Artemis (30 seconds by 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. +longer means that the listener container has released its connection. With camel-jms, the destroyed listener container +ends its non-durable topic subscriptions: the messages published until the new listener container subscribes do not +reach the consumer. A camel-jms suspend or stop from the thread that processes a message of the consumer (such as a +route policy when an exchange is done) still stops the listener container on that thread, without this time limit. 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
