activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From magellings <>
Subject NMS Activemq provider & TestZeroPrefetchSize test
Date Wed, 29 Jul 2009 13:54:09 GMT


I believe this test may not be fully testing the zero prefetch size

If you add a consumer with prefetch (say 5) and produce 20 messages, the
consumer with prefetch should consume a static amount of messages.  If two
zero prefetch consumers recieve twice, then there would be 18 messages the
consumer with prefetch should recieve.

>From my testing if I don't set the prefetch on the destination name
(test.queue?consumer.prefetchSize=0) and the Prefetch property on the
Session then the consumer with zero prefetch seems to still prefetch as the
consumer with prefetch doesn't pick up all the 18 messages it should.

It would be good if someone with commit privs could modify this test and
prove this out.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message