This closes #1279 ARTEMIS-1169 - Implement Interceptors for the AMQP protocol
This commit is contained in:
commit
72ab99fc62
|
@ -567,6 +567,7 @@ public class AMQPSessionCallback implements SessionCallback {
|
||||||
ProtonServerSenderContext plugSender = (ProtonServerSenderContext) consumer.getProtocolContext();
|
ProtonServerSenderContext plugSender = (ProtonServerSenderContext) consumer.getProtocolContext();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
invokeOutgoing((AMQPMessage) message, (ActiveMQProtonRemotingConnection) transportConnection.getProtocolConnection());
|
||||||
return plugSender.deliverMessage(ref, deliveryCount);
|
return plugSender.deliverMessage(ref, deliveryCount);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
connection.lock();
|
connection.lock();
|
||||||
|
|
|
@ -70,7 +70,7 @@ public class AmqpSendReceiveInterceptorTest extends AmqpClientTestSupport {
|
||||||
receiver.flow(2);
|
receiver.flow(2);
|
||||||
AmqpMessage amqpMessage = receiver.receive(5, TimeUnit.SECONDS);
|
AmqpMessage amqpMessage = receiver.receive(5, TimeUnit.SECONDS);
|
||||||
assertNotNull(amqpMessage);
|
assertNotNull(amqpMessage);
|
||||||
assertEquals(latch.getCount(), 0);
|
assertEquals(latch2.getCount(), 0);
|
||||||
receiver.close();
|
receiver.close();
|
||||||
connection.close();
|
connection.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue