cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject cxf git commit: [CXF-7038]ensure the JMS Connection get refreshed so that the jms retry can get a useful Connection
Date Mon, 05 Sep 2016 07:17:11 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 9e6761a4a -> 90b985071


[CXF-7038]ensure the JMS Connection get refreshed so that the jms retry can get a useful Connection

(cherry picked from commit 2ca06217311edb8bd70d95a03e59703bffa654b0)


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/90b98507
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/90b98507
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/90b98507

Branch: refs/heads/3.1.x-fixes
Commit: 90b985071ec022715f4a93e13e761c5f7bbe22d8
Parents: 9e6761a
Author: Freeman Fang <freeman.fang@gmail.com>
Authored: Mon Sep 5 15:13:34 2016 +0800
Committer: Freeman Fang <freeman.fang@gmail.com>
Committed: Mon Sep 5 15:14:12 2016 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/transport/jms/JMSConduit.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/90b98507/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSConduit.java
----------------------------------------------------------------------
diff --git a/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSConduit.java
b/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSConduit.java
index 9088ba6..c707817 100644
--- a/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSConduit.java
+++ b/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSConduit.java
@@ -228,10 +228,10 @@ public class JMSConduit extends AbstractConduit implements JMSExchangeSender,
Me
                     try {
                         exchange.wait(jmsConfig.getReceiveTimeout());
                     } catch (InterruptedException e) {
-                        throw new RuntimeException("Interrupted while correlating", e);
+                        throw new JMSException("Interrupted while correlating " +  e.getMessage());
                     }
                     if (exchange.get(CORRELATED) != Boolean.TRUE) {
-                        throw new RuntimeException("Timeout receiving message with correlationId
"
+                        throw new JMSException("Timeout receiving message with correlationId
"
                                                    + correlationId);
                     }
 


Mime
View raw message