Queues keep messages after acknowledgement
Status: Alpha
Brought to you by:
aananiev
current example:
a SessionBean contains a Queue an has a method getXX
().
Each time this method is called, messages are taken
from the queue. The acknowledgment modus is
AUTO_ACKNOWLEDGE so there should be no need to
acknowledge them explicitly so the messages should be
removed from the queue.
Anyway, the next time I run into the same method, the
messages are still in the queue, which is permanently
just growing until it is garbage-collected.
Logged In: YES
user_id=1160965
... I forgot to mention that the messages are consumed from
the queue using "QueueReceiver.receive()" .
As I saw in the source code the reason for this bug seems to
be in "MockConsumer.receive()" where the messages are just
removed from the messages list, but not from the destination.