Is it possible to have multiple listeners listening to the same queue using spring amqp
Clash Royale CLAN TAG#URR8PPP
Is it possible to have multiple listeners listening to the same queue using spring amqp
We have 2 different applications which interact with each by sending messages. Is it possible to have multiple listeners listening to the same queue. May be we could pass some header while pushing the message to the queue and then on the basis of header, the message would arrive in a single consumer.
1 Answer
1
No; RabbitMQ doesn't work that way; unlike JMS, there is no notion of a message selector.
Each consumer needs its own queue and you use a routing key to tell the broker which queue to route the message to.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
thanks for the confirmation Gary.
– user55926
Aug 7 at 4:35