From dcbb19509435703ebb16e1da65a8029206fbbe66 Mon Sep 17 00:00:00 2001 From: "Hiram R. Chirino" Date: Mon, 3 Dec 2012 13:43:12 +0000 Subject: [PATCH] Fixes AMQ-4201 : JMSX* properties not included in the getPropertyNames() enumeration git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1416515 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/command/ActiveMQMessage.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/activemq-client/src/main/java/org/apache/activemq/command/ActiveMQMessage.java b/activemq-client/src/main/java/org/apache/activemq/command/ActiveMQMessage.java index 75dac10480..cd03324596 100755 --- a/activemq-client/src/main/java/org/apache/activemq/command/ActiveMQMessage.java +++ b/activemq-client/src/main/java/org/apache/activemq/command/ActiveMQMessage.java @@ -311,6 +311,18 @@ public class ActiveMQMessage extends Message implements org.apache.activemq.Mess public Enumeration getPropertyNames() throws JMSException { try { Vector result = new Vector(this.getProperties().keySet()); + if( getRedeliveryCounter()!=0 ) { + result.add("JMSXDeliveryCount"); + } + if( getGroupID()!=null ) { + result.add("JMSXGroupID"); + } + if( getGroupID()!=null ) { + result.add("JMSXGroupSeq"); + } + if( getUserID()!=null ) { + result.add("JMSXUserID"); + } return result.elements(); } catch (IOException e) { throw JMSExceptionSupport.create(e);