camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [1/3] 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:01:40 GMT
Updated Branches:
  refs/heads/master 94f5dcbe5 -> 0b3a9b759


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/0b3a9b75
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/0b3a9b75
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/0b3a9b75

Branch: refs/heads/master
Commit: 0b3a9b75994ecc59d895dcfa94adc63093fef4d1
Parents: 5765ca6
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:02:11 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/0b3a9b75/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