activemq-users mailing list archives

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

Hello

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

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.

-Thanks
-- 
View this message in context: http://www.nabble.com/NMS-Activemq-provider---TestZeroPrefetchSize-test-tp24719816p24719816.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message