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:19:44 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 95e62db0e -> 53dcc25f5


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

(cherry picked from commit 2ca06217311edb8bd70d95a03e59703bffa654b0)
(cherry picked from commit 90b985071ec022715f4a93e13e761c5f7bbe22d8)


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

Branch: refs/heads/3.0.x-fixes
Commit: 53dcc25f519e3af21e66ecba1c5db24af78d7630
Parents: 95e62db
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:17:33 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/53dcc25f/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 4c40da4..485c27d 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
@@ -231,10 +231,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