I have configured a listener using DynamicMessageListenerContainer and configured it to listen to a particular queue/destination with a timeout of 5 seconds.
Once that timeout is achieved I want to toggle listening to another queue and then back to the original after next timeout.
Spring's documentation says it is possible but it is considered as advanced usage, I could not find how to do it.
Any help would be appreciated.
Thank you