ARTEMIS-1169 - Implement Interceptors for the AMQP protocol

Add Outgoing call

https://issues.apache.org/jira/browse/ARTEMIS-1169
This commit is contained in:
Andy Taylor 2017-05-18 08:40:35 +01:00
parent db8c567baa
commit 22f4736c88
2 changed files with 2 additions and 1 deletions

View File

@ -567,6 +567,7 @@ public class AMQPSessionCallback implements SessionCallback {
ProtonServerSenderContext plugSender = (ProtonServerSenderContext) consumer.getProtocolContext();
try {
invokeOutgoing((AMQPMessage) message, (ActiveMQProtonRemotingConnection) transportConnection.getProtocolConnection());
return plugSender.deliverMessage(ref, deliveryCount);
} catch (Exception e) {
connection.lock();

View File

@ -70,7 +70,7 @@ public class AmqpSendReceiveInterceptorTest extends AmqpClientTestSupport {
receiver.flow(2);
AmqpMessage amqpMessage = receiver.receive(5, TimeUnit.SECONDS);
assertNotNull(amqpMessage);
assertEquals(latch.getCount(), 0);
assertEquals(latch2.getCount(), 0);
receiver.close();
connection.close();
}