camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [2/2] camel git commit: CAMEL-10408: Camel-JMS: Suspending/resuming won't work in case of timeout
Date Fri, 21 Oct 2016 12:31:49 GMT
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/72f75a3c
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/72f75a3c
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/72f75a3c

Branch: refs/heads/master
Commit: 72f75a3cd581b140038b1523227e65de9a5d5169
Parents: 2ddffa4
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Fri Oct 21 14:31:01 2016 +0200
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Fri Oct 21 14:31:01 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/72f75a3c/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 85adeff..0a99724 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 Suspendable
{
         } 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.");
             }
         }
     }


Mime
View raw message