This closes #493

This commit is contained in:
Martyn Taylor 2016-04-27 10:15:17 +01:00
commit d5ebe071a0
1 changed files with 4 additions and 0 deletions

View File

@ -304,6 +304,10 @@ public class ProtonSessionIntegrationCallback implements AMQPSessionCallback, Se
EncodedMessage encodedMessage = new EncodedMessage(messageFormat, messageEncoded.array(), messageEncoded.arrayOffset(), messageEncoded.writerIndex());
ServerMessage message = manager.getConverter().inbound(encodedMessage);
//use the address on the receiver if not null, if null let's hope it was set correctly on the message
if (address != null) {
message.setAddress(new SimpleString(address));
}
recoverContext();