mirror of https://github.com/apache/activemq.git
pass on async exceptions to the Exception listener
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@367673 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a47deab320
commit
6397d0560b
|
@ -50,6 +50,7 @@ import org.apache.activemq.command.ActiveMQTempQueue;
|
|||
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;
|
||||
|
@ -1277,6 +1278,9 @@ public class ActiveMQConnection implements Connection, TopicConnection, QueueCon
|
|||
else if (command instanceof ControlCommand) {
|
||||
onControlCommand((ControlCommand) command);
|
||||
}
|
||||
else if (command.getDataStructureType() == ConnectionError.DATA_STRUCTURE_TYPE) {
|
||||
onAsyncException(((ConnectionError)command).getException());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue