mirror of https://github.com/apache/activemq.git
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:
parent
81c167b205
commit
dcbb195094
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue