JMS Examples: Configuring Message Groups
11.1.29. Message Group The message-group example shows you how to configure and use message groups with HornetQ. Message groups allow you to pin messages so they are only consumed by a single consumer. Message groups are sets of messages that has the following characteristics: Messages in a message group share the same group id, i.e. they have same JMSXGroupID string property values The consumer that receives the first message of a group will receive all the messages that belongs to the group