activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: queue prefetch?
Date Wed, 17 Jan 2007 15:45:52 GMT
On 1/17/07, YoungSoul <youngsoul@inbox.com> 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://11.11.11.11:61616?jms.prefetchPolicy.queuePrefetch=1
>
> 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

-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message