This commit is contained in:
Clebert Suconic 2018-11-14 09:54:29 -05:00
commit a20d7a0339
2 changed files with 6 additions and 3 deletions

View File

@ -291,8 +291,7 @@ public class CoreMessage extends RefCountMessage implements ICoreMessage {
@Override @Override
public int getGroupSequence() { public int getGroupSequence() {
final Integer integer = this.getIntProperty(Message.HDR_GROUP_SEQUENCE); return containsProperty(Message.HDR_GROUP_SEQUENCE) ? getIntProperty(Message.HDR_GROUP_SEQUENCE) : 0;
return integer == null ? 0 : integer;
} }
/** /**

View File

@ -266,8 +266,12 @@ public class ServerJMSMessage implements Message {
@Override @Override
public final int getIntProperty(String name) throws JMSException { public final int getIntProperty(String name) throws JMSException {
if (MessageUtil.JMSXGROUPSEQ.equals(name)) {
return message.getGroupSequence();
} else {
return message.getIntProperty(name); return message.getIntProperty(name);
} }
}
@Override @Override
public final long getLongProperty(String name) throws JMSException { public final long getLongProperty(String name) throws JMSException {