Re: Prefetch=0 how to?

2009-02-23 Thread Dejan Bosanac
I just ran the test a couple dozen times (against 5.2) and it always gives me green with the following messages receiver1: Start receiver to TEST_ONLY?consumer.prefetchSize=0 receiver2: Start receiver to TEST_ONLY?consumer.prefetchSize=0 sender: sent 100-A sender: sent 100-B receiver1: got 100-A s

Re: Prefetch=0 how to?

2009-02-21 Thread hackingbear
The latest codes in the SVN still seems to receive from two receivers. Maybe I miss something? Anyway, I have written a test case which depends on nothing but AMQ. I was using 5.1 and this bug shows up in 5.1; I tried running it in 5.2 for several times, and it always works. [What prevents me fro

Re: Prefetch=0 how to?

2009-02-17 Thread hackingbear
Thanks, I haven't get arround to try this but my test differs from two aspects: 1) I use dedicate session for each consumer 2) I receive from only one consumer twice. There is no problem receiving from two consumers. But when receiving from one consumer twice, the second time blocks forever. So

Re: Prefetch=0 how to?

2009-02-16 Thread Dejan Bosanac
Hi, just added a test that tries to reproduce your problem (testTwoConsumers) http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/ZeroPrefetchConsumerTest.java?view=markup and everything seems to be working fine. Can you try modifying it to reproroduce the

Re: Prefetch=0 how to?

2009-02-14 Thread hackingbear
sorry, a small correction: hackingbear wrote: > > - Server 1 receives user message 2, and so try to get a token, get token > B, but get stuck. > I meant: - Server 1 receives user message 2, and so try to get a token, but get stuck. token B never arrives -- View this message in context: ht

Prefetch=0 how to?

2009-02-14 Thread hackingbear
Hi, I have two server components in my system. A gateway server and multiple application server. The gateway server communicates with external system and does the following: 1. receive tokens from the external system and place them in a queue (the token queue.) 2. receive business requests from