activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Snyder <bruce.sny...@gmail.com>
Subject Re: Messages order corrupt.
Date Mon, 13 Jul 2009 21:47:04 GMT
On Mon, Jul 13, 2009 at 6:56 AM, fulldec<decedim@gmail.com> wrote:
>
> Hi everyone.
> We have an application using ActiveMQ for messaging. The order of messages
> is significant for us.
> There is a problem when we have a lot of messages hanging in a queue:
> 1. Generate a lot of messages (around 20000).
> 2. Start some consumer. Leech them.
> 3. Stop the consumer. Mostly at this stage the counter for messages gets
> wrong: we have something like
> Number Of Pending Messages -12
> Number Of Consumers              0
> Messages Sent                 37500
> Messages Received           37512
> In web console.
> 4. Delete this queue in web console.
> 5. Repeat steps 1, 2
> We see that consumer gets messages not in the same way as the producer puts
> them.
>
> ActiveMQ ver.5.2.0
> Java version 1.6.0_13
> OS WinXP + SP3

Regarding the message order, do you have the strictOrderDispatchPolicy
configured for the destination in the activemq.xml? See the following
for more info:

http://activemq.apache.org/total-ordering.html

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder

Mime
View raw message