activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugeny N Dzhurinsky <b...@redwerk.com>
Subject Re: CLIENT_ACKNOWLEDGE mode for a session misunderstanding?
Date Thu, 30 Oct 2008 22:20:41 GMT
On Wed, Oct 29, 2008 at 05:06:33PM +0000, Rob Davies wrote:
> Hi Eugeny,
> 
> As James stated earlier - you need to set the prefetch - but the value  
> should be 0 - this will make ActiveMQ 'pull' rather than 'push'

This doesn't work:

javax.jms.JMSException: Illegal prefetch size of zero. This setting is not
supported for asynchronous consumers please set a value of at least 1
        at
        org.apache.activemq.ActiveMQMessageConsumer.setMessageListener(ActiveMQMessageConsumer.java:358)

if I set URL to this value:

     private static final String CONNECTION_URL = "vm://localhost?broker.persistent=false&jms.prefetchPolicy.all=0";

-- 
Eugene N Dzhurinsky

Mime
View raw message