From b788ffac2259ce4c439eb998b75bd2efd25f25e0 Mon Sep 17 00:00:00 2001 From: Martyn Taylor Date: Thu, 8 Sep 2016 11:42:01 +0100 Subject: [PATCH] ARTEMIS-719 Send ampq:not-found properly on remote open --- .../proton/plug/context/server/ProtonServerSenderContext.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/server/ProtonServerSenderContext.java b/artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/server/ProtonServerSenderContext.java index 4ffb2dfa8b..564c9ba5af 100644 --- a/artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/server/ProtonServerSenderContext.java +++ b/artemis-protocols/artemis-proton-plug/src/main/java/org/proton/plug/context/server/ProtonServerSenderContext.java @@ -164,8 +164,7 @@ public class ProtonServerSenderContext extends AbstractProtonContextSender imple sender.setSource(source); } else { - sender.setCondition(new ErrorCondition(AmqpError.NOT_FOUND, "Unknown subscription link: " + sender.getName())); - sender.close(); + throw new ActiveMQAMQPNotFoundException("Unknown subscription link: " + sender.getName()); } } else {