activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r376339 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
Date Thu, 09 Feb 2006 16:29:31 GMT
Author: chirino
Date: Thu Feb  9 08:29:30 2006
New Revision: 376339

URL: http://svn.apache.org/viewcvs?rev=376339&view=rev
Log:
Call transportFailed() only for IOException caused by the transport.  Async exceptions from
the broker could just mean that an async operation failed (like an async send).

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

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java?rev=376339&r1=376338&r2=376339&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
Thu Feb  9 08:29:30 2006
@@ -1329,13 +1329,13 @@
             } else {
                 log.warn("Async exception with no exception listener: " + error, error);
             }
-            transportFailed(error);
         }
     }
 
     
     public void onException(IOException error) {
         onAsyncException(error);
+        transportFailed(error);
         ServiceSupport.dispose(this.transport);
         brokerInfoReceived.countDown();
     }



Mime
View raw message