ARTEMIS-719 Send ampq:not-found properly on remote open
This commit is contained in:
parent
c1c20a74f7
commit
b788ffac22
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue