[rabbitmq-discuss] Message stalls in the queue for long time

Peter Ledbrook peter at cacoethes.co.uk
Tue Nov 23 12:04:41 GMT 2010


> Thanks for your reply, Now we idenitified a exception which occurred while updating the message in database. StaleObjectStateException, because we are using Hibernate. After this exception occurs the listener failed to acknowledge the message,(So we think this reason makes that message to remain in the queue) Is it right?

This is easy to check: wrap the code in handleMessage() in a try/catch
block. If the messages are no longer left on the server, then that's
the problem. The exact behaviour will depend on Spring AMQP and how
it's MessageListenerContainer handles exceptions. Something to look
into.

Peter

--
Peter Ledbrook
Grails Advocate
SpringSource - A Division of VMware


More information about the rabbitmq-discuss mailing list