You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by drod <Di...@siemens.com> on 2007/09/06 11:16:05 UTC
prefetchSize for TopicSubscriber
How can I set the prefetchSize for a TopicSubscriber using ActiveMQ 4.1.1 ?
--
View this message in context: http://www.nabble.com/prefetchSize-for-TopicSubscriber-tf4390619s2354.html#a12518267
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: prefetchSize for TopicSubscriber
Posted by drod <Di...@siemens.com>.
Thanks to all.
I get it. All does work fine. I made a general mistake in my configuration.
James.Strachan wrote:
>
> On 9/6/07, drod <Di...@siemens.com> wrote:
>>
>> Yes I did and I try it with this configuration:
>> tcp://localhost:61616?jms.prefetchPolicy.all = 100
>
> Strange, works for me. You can also customize the PrefetchPolicy POJO
> on ActiveMQConnectionFactory / ActiveMQConnection before you create a
> consumer
>
> Did you try specifying it on the Destination...
>
> http://activemq.apache.org/destination-options.html
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
>
--
View this message in context: http://www.nabble.com/prefetchSize-for-TopicSubscriber-tf4390619s2354.html#a12556357
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: prefetchSize for TopicSubscriber
Posted by James Strachan <ja...@gmail.com>.
On 9/6/07, drod <Di...@siemens.com> wrote:
>
> Yes I did and I try it with this configuration:
> tcp://localhost:61616?jms.prefetchPolicy.all = 100
Strange, works for me. You can also customize the PrefetchPolicy POJO
on ActiveMQConnectionFactory / ActiveMQConnection before you create a
consumer
Did you try specifying it on the Destination...
http://activemq.apache.org/destination-options.html
--
James
-------
http://macstrac.blogspot.com/
Re: prefetchSize for TopicSubscriber
Posted by Juergen Mayrbaeurl <ju...@hvb.sozvers.at>.
We're using the Spring configuration for the ActiveMQConnectionFactory (with
version 4.1.0):
<bean id="jmsConnectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL"
value="${zpv.verst.empfaenger.mq.serverUrl}" />
<property name="userName" value="${zpv.verst.empfaenger.mq.userName}"/>
<property name="password" value="${zpv.verst.empfaenger.mq.password}"/>
<property name="clientID" value="${zpv.verst.empfaenger.mq.clientID}" />
<property name="prefetchPolicy">
<bean class="org.apache.activemq.ActiveMQPrefetchPolicy">
<property name="durableTopicPrefetch" value="1"/>
<property name="optimizeDurableTopicPrefetch" value="1"/>
</bean>
</property>
</bean>
This way works (at least with version 4.1.0, not tested with 4.1.1).
Kind regards
Juergen
drod wrote:
>
> Yes I did and I try it with this configuration:
> tcp://localhost:61616?jms.prefetchPolicy.all = 100
>
> But it doesn't work!
>
>
>
> Juergen Mayrbaeurl wrote:
>>
>> Did you look at
>> http://activemq.apache.org/what-is-the-prefetch-limit-for.html
>> what-is-the-prefetch-limit-for on the ActiveMQ website?
>>
>> Juergen
>>
>>
>> drod wrote:
>>>
>>> How can I set the prefetchSize for a TopicSubscriber using ActiveMQ
>>> 4.1.1 ?
>>>
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/prefetchSize-for-TopicSubscriber-tf4390619s2354.html#a12525566
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: prefetchSize for TopicSubscriber
Posted by drod <Di...@siemens.com>.
Yes I did and I try it with this configuration:
tcp://localhost:61616?jms.prefetchPolicy.all = 100
But it doesn't work!
Juergen Mayrbaeurl wrote:
>
> Did you look at
> http://activemq.apache.org/what-is-the-prefetch-limit-for.html
> what-is-the-prefetch-limit-for on the ActiveMQ website?
>
> Juergen
>
>
> drod wrote:
>>
>> How can I set the prefetchSize for a TopicSubscriber using ActiveMQ 4.1.1
>> ?
>>
>>
>
>
--
View this message in context: http://www.nabble.com/prefetchSize-for-TopicSubscriber-tf4390619s2354.html#a12525437
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: prefetchSize for TopicSubscriber
Posted by Juergen Mayrbaeurl <ju...@hvb.sozvers.at>.
Did you look at
http://activemq.apache.org/what-is-the-prefetch-limit-for.html
what-is-the-prefetch-limit-for on the ActiveMQ website?
Juergen
drod wrote:
>
> How can I set the prefetchSize for a TopicSubscriber using ActiveMQ 4.1.1
> ?
>
>
--
View this message in context: http://www.nabble.com/prefetchSize-for-TopicSubscriber-tf4390619s2354.html#a12520683
Sent from the ActiveMQ - User mailing list archive at Nabble.com.