Repository: camel Updated Branches: refs/heads/camel-2.16.x bff4002b0 -> 398864858
CAMEL-10408: Camel-JMS: Suspending/resuming won't work in case of timeout Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/39886485 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/39886485 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/39886485 Branch: refs/heads/camel-2.16.x Commit: 398864858971a7892d75e1efce4dfaed9c5f9891 Parents: bff4002 Author: Andrea Cosentino <anco...@gmail.com> Authored: Fri Oct 21 14:31:01 2016 +0200 Committer: Andrea Cosentino <anco...@gmail.com> Committed: Fri Oct 21 14:35:07 2016 +0200 ---------------------------------------------------------------------- .../src/main/java/org/apache/camel/component/jms/JmsConsumer.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/39886485/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConsumer.java ---------------------------------------------------------------------- diff --git a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConsumer.java b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConsumer.java index 5d66555..0264cd9 100644 --- a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConsumer.java +++ b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConsumer.java @@ -236,6 +236,8 @@ public class JmsConsumer extends DefaultConsumer implements SuspendableService { } else { if (listenerContainer != null) { startListenerContainer(); + } else { + log.warn("The listenerContainer is not instantiated. Probably there was a timeout during the Suspend operation. Please restart your consumer route."); } } }