activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From magellings <>
Subject Message Groups and Group Sequence -1
Date Tue, 09 Nov 2010 20:14:37 GMT

I am using message groups with ActiveMQ 5.4.1 and when ending the group I'm
seeing some odd behavior.  

I run two consumers on Queue A.  There is a 200ms delay when processing a
message.  I have a producer send 100 messages with group A to the broker
with the last having a group sequence of -1.  The first consumer starts
processing messages from group A while the producer is creating the
messages, but as soon as the broker gets the message with group sequence of
-1 that message gets sent to the second consumer, and then the remaining in
the group go to the second consumer.  

So the processing is out of order and all the messages don't go to the same

Is this expected behavior?  It would seem to make more sense if only
messages created after the one with group sequence of -1 could go to the
second consumer.  And if the messages with -1 gets processed last.  
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message