Spring provides @JMSListener
annotation to listen to messages from a particular queue. There is also an alternative to implement JmsListenerConfigurer
and register a MessageListener
.
In both the cases, the name of the queue has to be known at the time when the application starts, either by hardcoding in the code or via properties.
Is there a way to listen to a queue whose name is known to the application much later after it started?