jms.redeliveryPolicy.allPrefetchValues is not recognized as correct connection param in ver. 4.1. i tried jms.prefetchPolicy.all. Without success.
Christopher G. Stach II wrote: > > magic.moose wrote: >> >> I tried that. Resource Adapter simply references connectionFactory: >> <bean id="broker" >> class="org.apache.activemq.xbean.BrokerFactoryBean" >> depends-on="serverConnector"> >> <property name="config" >> value="classpath:broker.xml" /> >> <property name="start" value="true" /> >> </bean> >> <bean id="connectionFactory" >> class="org.apache.activemq.ActiveMQConnectionFactory" >> singleton="true"> >> <property name="brokerURL" value="vm://localhost"/> >> </bean> >> >> <bean id="jmsResourceAdapter" >> class="org.apache.activemq.ra.ActiveMQResourceAdapter"> >> <property name="connectionFactory" ref="connectionFactory" /> >> </bean> >> >> where broker.xml: >> <?xml version="1.0" encoding="UTF-8"?> >> >> <beans xmlns="http://activemq.org/config/1.0"> >> >> <broker name="localhost" persistent="false" useJmx="true"> >> >> <transportConnectors> >> <transportConnector >> uri="vm://localhost" /> >> </transportConnectors> >> <memoryManager> >> <usageManager id="memory-manager" limit="20 MB" /> >> </memoryManager> >> >> <destinationPolicy> >> <policyMap><policyEntries> >> <policyEntry queue="testQueue"> >> <dispatchPolicy> >> <roundRobinDispatchPolicy/> >> </dispatchPolicy> >> <pendingMessageLimitStrategy> >> <constantPendingMessageLimitStrategy limit="0"/> >> </pendingMessageLimitStrategy> >> </policyEntry> >> </policyEntries></policyMap> >> </destinationPolicy> >> >> </broker> >> >> </beans> >> >> queuePrefetch property of resource adapter doesnt help. >> and it really is 10 ! >> it not only that it behaves like it is 10. thats what i can see via jmx. > > Try this: > > <bean id="connectionFactory" > class="org.apache.activemq.ActiveMQConnectionFactory" > singleton="true"> > <property name="brokerURL" > value="vm://localhost?jms.redeliveryPolicy.allPrefetchValues=1"/> > </bean> > > > -- > Christopher G. Stach II > > > -- View this message in context: http://www.nabble.com/Can%27t-set-prefetch-size%21-tf3114996.html#a8767617 Sent from the ActiveMQ - User mailing list archive at Nabble.com.