You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by -Robert- <fo...@calitha.com> on 2010/06/07 11:15:50 UTC
Queue configuration
My assumption is that (by default) calls will return immediately when a
message is put in the queue.
How can I configure this queue?
I would like the queue to hold only a maximum of 10 messages. A call should
block if a new message is put in a full queue.
There must be only one consumer thread so that messages are received in the
correct order.
--
View this message in context: http://old.nabble.com/Queue-configuration-tp28802787p28802787.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Queue configuration
Posted by zxekak <zx...@gmail.com>.
Hello Dejan,
Could you please tell when it is planned to limit queue size by number of
messages?
Thanks.
--
View this message in context: http://activemq.2283324.n4.nabble.com/Queue-configuration-tp2367513p3348620.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Queue configuration
Posted by Dejan Bosanac <de...@nighttale.net>.
Hi,
Also we can't limit queue size, by number of messages (yet), but only by
parameters like memory size. Take a look at the following link for more
details
http://activemq.apache.org/producer-flow-control.html
<http://activemq.apache.org/producer-flow-control.html>Cheers
--
Dejan Bosanac - http://twitter.com/dejanb
Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net
2010/6/8 Márcio Geovani Jasinski <ma...@gmail.com>
> Hi Robert,
>
> I think you case requires a special implementation but anyway I will
> suggest
> you 2 links. It might be useful:
>
> http://activemq.apache.org/scaling-the-depth-of-a-queue.html
>
> <http://activemq.apache.org/scaling-the-depth-of-a-queue.html>
> http://activemq.apache.org/what-is-the-prefetch-limit-for.html
>
> <http://activemq.apache.org/what-is-the-prefetch-limit-for.html>Regards,
> --
> Márcio Geovani Jasinski
> Blumenau, Santa Catarina
> Fone: +55 47 9653 4899
>
Re: Queue configuration
Posted by Márcio Geovani Jasinski <ma...@gmail.com>.
Hi Robert,
I think you case requires a special implementation but anyway I will suggest
you 2 links. It might be useful:
http://activemq.apache.org/scaling-the-depth-of-a-queue.html
<http://activemq.apache.org/scaling-the-depth-of-a-queue.html>
http://activemq.apache.org/what-is-the-prefetch-limit-for.html
<http://activemq.apache.org/what-is-the-prefetch-limit-for.html>Regards,
--
Márcio Geovani Jasinski
Blumenau, Santa Catarina
Fone: +55 47 9653 4899