activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Messages are not removed from queue after onMessage is fired
Date Tue, 22 Jan 2008 13:49:26 GMT
On 22/01/2008, Fady <fady@legsem.com> wrote:
>
> Hello,
>
> I am new to JMS and ActiveMQ so I am probably doing something stupid but
> can't figure out what it is:
>
> I am running ActiveMQ 5.0.0 imbedded in a Tomcat application. I have a
> non-persistent producer, from a non-transacted and autoacknowledge session,
> creating messages in a queue and a MessageListener processing them in an
> onMessage event.
>
> Everything goes fine apart from the queue size which keeps growing (as
> reported by JMX).

If the queue size is growing, do you have a producer sending more messages?


> I was assuming messages would be automatically removed once the onMessage
> method terminates.

It should be.

Does your onMessage() method definitely complete without throwing any
exceptions?
-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message