This closes #764

This commit is contained in:
Clebert Suconic 2016-09-09 09:49:38 -04:00
commit 2ef20e6152
2 changed files with 4 additions and 2 deletions

View File

@ -32,8 +32,9 @@ import org.apache.activemq.artemis.reader.MessageUtil;
public class ServerJMSMessage implements Message {
public static final String NATIVE_MESSAGE_ID = "NATIVE_MESSAGE_ID";
protected final MessageInternal message;
private final String NATIVE_MESSAGE_ID = "NATIVE_MESSAGE_ID";
protected int deliveryCount;

View File

@ -17,6 +17,7 @@
package org.apache.activemq.artemis.core.protocol.proton.converter.message;
import org.apache.activemq.artemis.core.message.impl.MessageInternal;
import org.apache.activemq.artemis.core.protocol.proton.converter.jms.ServerJMSMessage;
import org.apache.qpid.proton.amqp.Binary;
import org.apache.qpid.proton.amqp.Symbol;
import org.apache.qpid.proton.amqp.UnsignedByte;
@ -223,7 +224,7 @@ public class JMSMappingOutboundTransformer extends OutboundTransformer {
final Enumeration<String> keys = msg.getPropertyNames();
while (keys.hasMoreElements()) {
String key = keys.nextElement();
if (key.equals(messageFormatKey) || key.equals(nativeKey)) {
if (key.equals(messageFormatKey) || key.equals(nativeKey) || key.equals(ServerJMSMessage.NATIVE_MESSAGE_ID)) {
// skip..
}
else if (key.equals(firstAcquirerKey)) {