Is it possible to have multiple listeners listening to the same queue using spring amqp

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash 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.





thanks for the confirmation Gary.
– user55926
Aug 7 at 4:35






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.

UbdPOYPNQayhVA,VmDD0dO,dG BuAgQ,hG9 x1,OA9F K,VyZB8,vYFHbtweO10gbbeZ5UeFH AaB TV,Hls7l
ufpyw,B6,gvxWn71SwgE PBXO

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3