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
This commit is contained in:
Hiram R. Chirino 2012-12-03 13:43:12 +00:00
parent 81c167b205
commit dcbb195094
1 changed files with 12 additions and 0 deletions

View File

@ -311,6 +311,18 @@ public class ActiveMQMessage extends Message implements org.apache.activemq.Mess
public Enumeration getPropertyNames() throws JMSException {
try {
Vector<String> result = new Vector<String>(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);