<div dir="ltr">You cannot currently change the listener container's concurrent consumers at runtime. We have an open JIRA issue [1] for that; vote it up!<div><br></div><div>You can, however, stop the container, change the setting and restart the container (stop(), setConcurrentConsumers(int), start()).</div>
<div><br></div><div>You do not have to restart the RabbitMQ server.</div><div><br></div><div>[1]: <a href="https://jira.springsource.org/browse/AMQP-306">https://jira.springsource.org/browse/AMQP-306</a></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Nov 25, 2013 at 7:25 AM, Rajasekhar P <span dir="ltr"><<a href="mailto:sekhar434145@gmail.com" target="_blank">sekhar434145@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Team,<div><br></div><div> I have the requirement where I have set the concurrent consumers size at run-time without restarting the RabbitMQ server based on the load. Is that possible? Am using Spring-AMQP API for setting concurrent consumers. Could you please help me on this.</div>
<div><br></div><div><div>SimpleMessageListenerContainer container = new SimpleMessageListenerContainer();</div><div>container.setConcurrentConsumers(2);</div></div><div><br></div><div><br></div><div>Thanks in advance!!!</div>
</div>
<br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>