You only have to specify the prefetch policy on the consumer side.
In Lucas' case, I believe what is happening is that the broker is evenly
distributing the message traffic across the cluster of two consumers,
because the two consumers have the same prefetch value.
If on the other hand, you a
it works if you specify it on both ends,
so you have the client correct, on the server you need to specify it too
uri="tcp://localhost:61616?maxInactivityDuration=-1&jms.prefetchPolicy.all=1"
/>
Filip
fl wrote:
Hello,
I have trouble with disabling prefetch buffer for consumers. I
Hello,
I have trouble with disabling prefetch buffer for consumers. I made simple
test.
This is my configuration (i tried the same with values = 0):
ConnectionFactory connectionFactory = new
ActiveMQConnectionFactory("tcp://localhost:61616?jms.prefetchPolicy.all=1&jms.optimizeMessageDispatch=fa