camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/2] git commit: Added some logging when reply manager is being stopped so its easier to pair the start/stop logs.
Date Tue, 05 Nov 2013 11:00:30 GMT
Updated Branches:
  refs/heads/camel-2.12.x 46fbd4b92 -> badc9f628


Added some logging when reply manager is being stopped so its easier to pair the start/stop
logs.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/83ef2f7c
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/83ef2f7c
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/83ef2f7c

Branch: refs/heads/camel-2.12.x
Commit: 83ef2f7cf70fd81e3f830b356e1c9b98128a4dbe
Parents: 46fbd4b
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Tue Nov 5 11:58:37 2013 +0100
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Tue Nov 5 12:00:54 2013 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/component/jms/JmsProducer.java     | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/83ef2f7c/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
index 3af7aab..096df8c 100644
--- a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
+++ b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsProducer.java
@@ -117,7 +117,13 @@ public class JmsProducer extends DefaultAsyncProducer {
 
     protected void unInitReplyManager() {
         try {
-            ServiceHelper.stopService(replyManager);
+            if (replyManager != null) {
+                if (LOG.isDebugEnabled()) {
+                    LOG.debug("Stopping JmsReplyManager: {} from processing replies from:
{}", replyManager,
+                            endpoint.getReplyTo() != null ? endpoint.getReplyTo() : "temporary
queue");
+                }
+                ServiceHelper.stopService(replyManager);
+            }
         } catch (Exception e) {
             throw ObjectHelper.wrapRuntimeCamelException(e);
         } finally {


Mime
View raw message