Repository: activemq-artemis Updated Branches: refs/heads/master d9a7b2feb -> e29c46373
ARTEMIS-1050 Register AMQP failure/close listeners Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/7cf06cd2 Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/7cf06cd2 Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/7cf06cd2 Branch: refs/heads/master Commit: 7cf06cd28507c3e0db628d1fa4d8ec25eca1f8b9 Parents: d9a7b2f Author: Martyn Taylor <[email protected]> Authored: Sun Mar 19 14:09:07 2017 +0000 Committer: Martyn Taylor <[email protected]> Committed: Sun Mar 19 14:15:30 2017 +0000 ---------------------------------------------------------------------- .../artemis/protocol/amqp/broker/ProtonProtocolManager.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/7cf06cd2/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/ProtonProtocolManager.java ---------------------------------------------------------------------- diff --git a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/ProtonProtocolManager.java b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/ProtonProtocolManager.java index 9c7d24d..2828cc1 100644 --- a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/ProtonProtocolManager.java +++ b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/ProtonProtocolManager.java @@ -110,6 +110,8 @@ public class ProtonProtocolManager implements ProtocolManager<Interceptor>, Noti Executor executor = server.getExecutorFactory().getExecutor(); ActiveMQProtonRemotingConnection delegate = new ActiveMQProtonRemotingConnection(this, amqpConnection, remotingConnection, executor); + delegate.addFailureListener(connectionCallback); + delegate.addCloseListener(connectionCallback); connectionCallback.setProtonConnectionDelegate(delegate);
