activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbruch <holger.br...@isb-ag.de>
Subject Configuring prefetch limit via Broker URI
Date Tue, 01 Aug 2006 11:56:23 GMT

Hi,

is there a way to configure the PrefetchPolicy per connection using the
broker URI? I tried to set it without success using 

vm://localhost?jms.prefetchPolicy.queuePrefetch=1.

I got the following execption:

javax.jms.JMSException: Could not connect to broker URL: vm://localhos
t?jms.prefetchPolicy.queuePrefetch=1. Reason:
java.lang.IllegalArgumentException: Invalid connect parameters:
{jms.prefetchPolicy.queuePrefetch=1}
        at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:32)
        at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:252)
        at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:211)
        at
org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:158)
        ...
Caused by: java.lang.IllegalArgumentException: Invalid connect parameters:
{jms.prefetchPolicy.queuePrefetch=1}
        at
org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:130)
        at
org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:48)
        at
org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:42)
        at
org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:76)
        at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:223)
        ... 10 more

Thanks for your help,
Holger



-- 
View this message in context: http://www.nabble.com/Configuring-prefetch-limit-via-Broker-URI-tf2033127.html#a5593056
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message