Creating Dynamic queues using RabbitMQ

3,185 views
Skip to first unread message

Sanjay Singh

unread,
Sep 16, 2014, 2:53:08 PM9/16/14
to rabbitm...@googlegroups.com
Team,

I am trying to create set of dynamic queues based on demand within the same exchange, it is important to have a single listener associated with the array of dynamic queues i create, any help in able to create dynamic queues using spring-amqp library

Michael Klishin

unread,
Sep 16, 2014, 3:24:02 PM9/16/14
to rabbitm...@googlegroups.com, Sanjay Singh
Define dynamic queues?

All queues in RabbitMQ are declared by apps as they need them, and can be
deleted by apps. So they are "dynamic" if you ask me. But you probably
mean something else.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ

Gary Russell

unread,
Sep 16, 2014, 4:59:32 PM9/16/14
to Michael Klishin, rabbitm...@googlegroups.com, Sanjay Singh
My guess is you want to declare new queues on an as-needed basis.

Use Spring AMQP's RabbitAdmin to declare the queue and its binding to the exchange.

Starting with version 1.3, you can add queues (consumers) to a running listener container [1]. Prior to 1.3 you had to stop the container to reconfigure the queues it listens to.



--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send an email to rabbitm...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sanjay Singh

unread,
Sep 17, 2014, 1:08:37 AM9/17/14
to rabbitm...@googlegroups.com
Thanks Michael, Gary; Gary i believe you understood almost right, my bad, wasn't very clear while explaining the problem.

I am looking at a setup or configuration that should allow me to create dynamic queues, i don't want the queues to be declared and added at the run time but capability to create new queues as in when ever required, @Gary i got the link you send, i will try that.
Reply all
Reply to author
Forward
0 new messages