ARTEMIS-1050 Register AMQP failure/close listeners

This commit is contained in:
Martyn Taylor 2017-03-19 14:09:07 +00:00
parent d9a7b2feb6
commit 7cf06cd285
1 changed files with 2 additions and 0 deletions

View File

@ -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);