Am using the @MessageMapping(queue_name)
annotation along with the spring-aws-cloud library to consume messages from two SQS queues.
I see that the SimpleMessageListenerContainer
is used as the listener container for both message queues. There is a start()
and a stop()
method on the container, but I believe that will start/stop consumption from both queues.
I wanted to know if there is a way to programatically start/stop queue consumption for the queues separately. How can that be achieved?