On 1/17/07, YoungSoul <[EMAIL PROTECTED]> 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/

Reply via email to