[rabbitmq-discuss] Basic question on message delivery problem

Simon MacMullen simon at rabbitmq.com
Wed Dec 4 16:42:03 GMT 2013


On 04/12/2013 15:26, Tom Reineke wrote:
> I would have assumed that I get a log output for each of the 10
> messages; instead I only get:
>
> [Thread-0] INFO de.apt.utils.APTMailUtil - ########## message #############
> [Thread-0] INFO de.apt.utils.APTMailUtil - message 2
> [Thread-0] INFO de.apt.utils.APTMailUtil - ########## message #############
> [Thread-0] INFO de.apt.utils.APTMailUtil - message 5
> [Thread-0] INFO de.apt.utils.APTMailUtil - ########## message #############
> [Thread-0] INFO de.apt.utils.APTMailUtil - message 8
>
> Can you tell me where the problem is in my code?

Your code works fine for me.

I would check you haven't got any other instances of the consumer code 
running though - if you did each instance would get a round-robin set of 
the messages, leading to exactly what you're seeing.

"rabbitmqctl list_queues name consumers" should help.

Cheers, Simon


More information about the rabbitmq-discuss mailing list