activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: queue prefetch?
Date Wed, 17 Jan 2007 15:45:52 GMT
On 1/17/07, YoungSoul <> wrote:
> I am confused as to where I set the queue prefetch.
> I have seen it on the queue name like:  myQueueName?consumer.prefetchSize=1
> and I have seen it on the broker url like:
> tcp://
> which one is the right way to do this?

Either :) Its your call whether you want to set it per connection or
per destination.

>  I actually dont want any prefetching
> at all so if there is a way to just turn it off that would be great.

Then use it on the URL so the default will be applied to all destinations.

> I
> assume a prefetch of 1, means that the client will prefetch 1 message.

Yes. You can use 0 where receive() will try pull the message I think



View raw message