I have a windows application (written in Java) that will run 24/7.
This application will act as a Consumer for RabbitMQ server.
Different producers (other applications) will be populating messages into the Topic Exchange queue using different routing keys. My application/consumer has to create different queues (using some particular binding key that matches the routing key of producers) and listen for messages from those queues indefinitely.
My question is, can the MessageListener.onMessage() method be invoked separately for each of these different queues created in the consumer, so that they listen for messages indefinitely.
If yes, what is the approach to do this?