cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [2/3] git commit: Fix the test failure (not sure if this is the correct fix, but the test passes)
Date Thu, 03 Apr 2014 20:49:39 GMT
Fix the test failure  (not sure if this is the correct fix, but the test passes)


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

Branch: refs/heads/master
Commit: ea303974b03322a221de2d042a16e8c4f484056e
Parents: 63dce48
Author: Daniel Kulp <dkulp@apache.org>
Authored: Thu Apr 3 10:54:17 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Thu Apr 3 10:54:17 2014 -0400

----------------------------------------------------------------------
 .../cxf/transport/jms/util/MessageListenerContainer.java       | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/ea303974/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/util/MessageListenerContainer.java
----------------------------------------------------------------------
diff --git a/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/util/MessageListenerContainer.java
b/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/util/MessageListenerContainer.java
index 01d9ae7..6aa217d 100644
--- a/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/util/MessageListenerContainer.java
+++ b/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/util/MessageListenerContainer.java
@@ -210,7 +210,6 @@ public class MessageListenerContainer implements JMSListenerContainer
{
         
     }
     
-    @SuppressWarnings("PMD")
     static class XATransactionalMessageListener implements MessageListener {
         private TransactionManager tm;
         private MessageListener listenerHandler;
@@ -237,6 +236,11 @@ public class MessageListenerContainer implements JMSListenerContainer
{
                 tm.commit();
             } catch (Throwable e) {
                 safeRollback(e);
+                if (e instanceof RuntimeException) {
+                    throw (RuntimeException)e;
+                } else {
+                    throw new RuntimeException(e);
+                }
             }
         }
         


Mime
View raw message