ARTEMIS-2142 Patch Fix ServerJMSMessage for JMSXGROUPSEQ
This is a patch fix for JMSXGROUPSEQ.
This commit is contained in:
parent
54e9d67b9a
commit
14451a79eb
|
@ -291,8 +291,7 @@ public class CoreMessage extends RefCountMessage implements ICoreMessage {
|
|||
|
||||
@Override
|
||||
public int getGroupSequence() {
|
||||
final Integer integer = this.getIntProperty(Message.HDR_GROUP_SEQUENCE);
|
||||
return integer == null ? 0 : integer;
|
||||
return containsProperty(Message.HDR_GROUP_SEQUENCE) ? getIntProperty(Message.HDR_GROUP_SEQUENCE) : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -266,7 +266,11 @@ public class ServerJMSMessage implements Message {
|
|||
|
||||
@Override
|
||||
public final int getIntProperty(String name) throws JMSException {
|
||||
return message.getIntProperty(name);
|
||||
if (MessageUtil.JMSXGROUPSEQ.equals(name)) {
|
||||
return message.getGroupSequence();
|
||||
} else {
|
||||
return message.getIntProperty(name);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue