activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r669491 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
Date Thu, 19 Jun 2008 14:00:22 GMT
Author: rajdavies
Date: Thu Jun 19 07:00:22 2008
New Revision: 669491

URL: http://svn.apache.org/viewvc?rev=669491&view=rev
Log:
Fix for https://issues.apache.org/activemq/browse/AMQ-1811

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java?rev=669491&r1=669490&r2=669491&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
Thu Jun 19 07:00:22 2008
@@ -1226,12 +1226,15 @@
                     if (er.getException() instanceof JMSException) {
                         throw (JMSException)er.getException();
                     } else {
+                        JMSException jmsEx = null;
                         try {
-                        throw JMSExceptionSupport.create(er.getException());
+                         jmsEx = JMSExceptionSupport.create(er.getException());
                         }catch(Throwable e) {
-                            System.err.println(er.getException());
                             LOG.error("Caught an exception trying to create a JMSException
for " +er.getException(),e);
                         }
+                        if(jmsEx !=null) {
+                            throw jmsEx;
+                        }
                     }
                 }
                 return response;



Mime
View raw message