On 7/5/06, James Strachan <[EMAIL PROTECTED]> wrote:
The prefetch property is related to consumers; it shouldn't really
matter if a consumer is on the same connection or not. Though 1
session only dispatches messages for any consumers in one single
thread, so consumers have to be using different sessions to have any
concurrency.

How many messages are on the queue? Its quite common for consumers to
eagerly pull their entire prefetch window in aggressively (which under
low message volumes can lead to unfair distribution).

To go for fairer load balancing rather than high performance you can
use the round robin delivery policy...

http://incubator.apache.org/activemq/per-destination-policies.html
http://incubator.apache.org/activemq/how-do-i-change-dispatch-policy.html

I've added a better page describing dispatch policies with examples here...

http://activemq.org/site/dispatch-policies.html

--

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

Reply via email to