Fixed AMQ-5160, removed producer's retain property from retained messages

This commit is contained in:
Dhiraj Bokde 2014-05-13 12:15:14 -07:00 committed by Dejan Bosanac
parent 78950ec596
commit c915b19a20
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ public class RetainedMessageSubscriptionRecoveryPolicy implements SubscriptionRe
if (message.getContent().getLength() > 0) {
// non zero length message content
retainedMessage = message.copy();
retainedMessage.getMessage().removeProperty(RETAIN_PROPERTY);
retainedMessage.getMessage().setProperty(RETAINED_PROPERTY, true);
} else {
// clear retained message