You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Mons Anderson <mo...@cpan.org> on 2009/02/04 13:58:57 UTC

How to set prefetchSize in conf/activemq.xml?

I have such a problem:
I try to consume messages, using STOMP protocol from Perl.
When SUBSCRIBE is sent (with ack:client), broker immediately sends 1000
messages from queue to consumer.
But I want It send to me only one message, until I say back ACK on that
message.

Can anybody explain me, how I may do such a behavior using stomp?
If it is impossible via stomp, is it possible via openwire?
-- 
View this message in context: http://www.nabble.com/How-to-set-prefetchSize-in-conf-activemq.xml--tp21829644p21829644.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: How to set prefetchSize in conf/activemq.xml?

Posted by Mons Anderson <mo...@cpan.org>.
Oh, yes: I've been adding it to queue uri, but it works when passing in stomp
headers.


Mons Anderson wrote:
> 
> Big thanks.
> I've tried this option, but maybe the testcase was wrong that time
> It works
> 

-- 
View this message in context: http://www.nabble.com/How-to-set-prefetchSize-in-conf-activemq.xml--tp21829644p21831057.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: How to set prefetchSize in conf/activemq.xml?

Posted by Mons Anderson <mo...@cpan.org>.
Big thanks.
I've tried this option, but maybe the testcase was wrong that time
It works


Dejan Bosanac wrote:
> 
> Hi Mons,
> 
> yes, it's possible to do it with Stomp. All you have to do is to set
> 
> activemq.prefetchSize header to 1 on your subscribe command
> 
> Cheers
> --
> Dejan Bosanac
> 
> Open Source Integration - http://fusesource.com/
> ActiveMQ in Action - http://www.manning.com/snyder/
> Blog - http://www.nighttale.net
> 
> 
> On Wed, Feb 4, 2009 at 1:58 PM, Mons Anderson <mo...@cpan.org> wrote:
> 
>>
>> I have such a problem:
>> I try to consume messages, using STOMP protocol from Perl.
>> When SUBSCRIBE is sent (with ack:client), broker immediately sends 1000
>> messages from queue to consumer.
>> But I want It send to me only one message, until I say back ACK on that
>> message.
>>
>> Can anybody explain me, how I may do such a behavior using stomp?
>> If it is impossible via stomp, is it possible via openwire?
> 

-- 
View this message in context: http://www.nabble.com/How-to-set-prefetchSize-in-conf-activemq.xml--tp21829644p21831033.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: How to set prefetchSize in conf/activemq.xml?

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi Mons,

yes, it's possible to do it with Stomp. All you have to do is to set

activemq.prefetchSize header to 1 on your subscribe command

Cheers
--
Dejan Bosanac

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Wed, Feb 4, 2009 at 1:58 PM, Mons Anderson <mo...@cpan.org> wrote:

>
> I have such a problem:
> I try to consume messages, using STOMP protocol from Perl.
> When SUBSCRIBE is sent (with ack:client), broker immediately sends 1000
> messages from queue to consumer.
> But I want It send to me only one message, until I say back ACK on that
> message.
>
> Can anybody explain me, how I may do such a behavior using stomp?
> If it is impossible via stomp, is it possible via openwire?
> --
> View this message in context:
> http://www.nabble.com/How-to-set-prefetchSize-in-conf-activemq.xml--tp21829644p21829644.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>