Does EMS Server group messages based on JMSXGroupID and JMSXGroupSeq

Does EMS Server group messages based on JMSXGroupID and JMSXGroupSeq

book

Article ID: KB0080410

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks 5.x,6.x

Description

If we set the JMSXGroupID and JMSXGroupSeq in the message does EMS Server group the messages by default?

Issue/Introduction

Does EMS Server group messages based on JMSXGroupID and JMSXGroupSeq?

Resolution

As per EMS Specification:

>>>>>>>>>>>>>>>>>>>

JMSXGroupID and JMSXGroupSeq are defined as standard properties by the JMS specification and are provided by the following methods: 

set: 

message.setStringProperty("JMSXGroupID", "My Group");

message.setIntProperty("JMSXGroupSeq", 12345);

 

get:

String strValue = message.getStringProperty("JMSXGroupID");

int iValue = message.getIntProperty("JMSXGroupSeq");

 

These two properties, JMSXGroupID and JMSXGroupSeq, are used by client applications for grouping messaging. They work as two variables for applications to attach group information. The grouping is at the application level which is transparent to the EMS server as there is no server logic for filtering messages by groups. The EMS server does not address sending all messages having the same JMSXGroupID to only one consumer, rather the consumer application should have built-in logic to do so by using the message selector feature provided with EMS. 

>>>>>>>>>>>>>>>>>>>

So EMS server will not group the messages and neither it will sequence the messages.It is left to JMS clients how to use these properties.