activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r367673 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/ActiveMQConnection.java
Date Tue, 10 Jan 2006 16:28:32 GMT
Author: chirino
Date: Tue Jan 10 08:28:24 2006
New Revision: 367673

URL: http://svn.apache.org/viewcvs?rev=367673&view=rev
Log:
pass on async exceptions to the Exception listener

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=367673&r1=367672&r2=367673&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
Tue Jan 10 08:28:24 2006
@@ -50,6 +50,7 @@
 import org.apache.activemq.command.ActiveMQTempTopic;
 import org.apache.activemq.command.BrokerInfo;
 import org.apache.activemq.command.Command;
+import org.apache.activemq.command.ConnectionError;
 import org.apache.activemq.command.ConnectionId;
 import org.apache.activemq.command.ConnectionInfo;
 import org.apache.activemq.command.ConsumerId;
@@ -1276,6 +1277,9 @@
             }
             else if (command instanceof ControlCommand) {
                 onControlCommand((ControlCommand) command);
+            }
+            else if (command.getDataStructureType() == ConnectionError.DATA_STRUCTURE_TYPE)
{
+                onAsyncException(((ConnectionError)command).getException());
             }
         }
     }



Mime
View raw message