You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ubaid <ub...@aajtech.com> on 2017/10/17 07:55:27 UTC

ActiveMQ Message Window size

I am using activeMQ v5.15.0 integrated in mule application with JMS. I want
to get first 50 messages from the queue, how to set that windowSize and
where to configure this setting.



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: ActiveMQ Message Window size

Posted by "art.licis" <ar...@gmail.com>.
You are very unclear with requirements, but if you want to limit how many
messages are buffered on a consumer side, then in ActiveMQ 5.x it's called
'prefetch limit'. Params can be passed via connection URI (for all
destinations), or along destination name as a destination option. A very
detailed explanation is here:

http://activemq.apache.org/what-is-the-prefetch-limit-for.html



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: ActiveMQ Message Window size

Posted by Timothy Bish <ta...@gmail.com>.
On 10/17/2017 11:01 AM, ubaid wrote:
> so you are saying that we cannot limit the consumer with the messages he is
> getting at once from activeMQ. I asked this question on this forum because I
> found a parameter consumerWindowSize in the Apache ActiveMQ documentation
> for limiting the consumer buffer. What I'm not getting is where to place
> that parameter on Apache ActiveMQ server side.
> you can have a look at  this
> <https://activemq.apache.org/artemis/docs/1.0.0/flow-control.html>
> *Windows Based Flow Control*
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>
That documentation is from ActiveMQ Artemis, you said you are using 
ActiveMQ 5.15.0 so that configuration doesn't apply to you.

-- 
Tim Bish
twitter: @tabish121
blog: http://timbish.blogspot.com/


Re: ActiveMQ Message Window size

Posted by ubaid <ub...@aajtech.com>.
so you are saying that we cannot limit the consumer with the messages he is
getting at once from activeMQ. I asked this question on this forum because I
found a parameter consumerWindowSize in the Apache ActiveMQ documentation
for limiting the consumer buffer. What I'm not getting is where to place
that parameter on Apache ActiveMQ server side.
you can have a look at  this
<https://activemq.apache.org/artemis/docs/1.0.0/flow-control.html>  
*Windows Based Flow Control*



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: ActiveMQ Message Window size

Posted by Timothy Bish <ta...@gmail.com>.
On 10/17/2017 03:55 AM, ubaid wrote:
> I am using activeMQ v5.15.0 integrated in mule application with JMS. I want
> to get first 50 messages from the queue, how to set that windowSize and
> where to configure this setting.
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>
This seems like question you should be asking the Mule folks, this forum 
is for supporting ActiveMQ proper.

-- 
Tim Bish
twitter: @tabish121
blog: http://timbish.blogspot.com/