In my Spring Boot application I have configured following JMS Listener:
@Component
public class Consumer {
@JmsListener(destination = "image.index.queue")
public void receiveQueue(IndexRequest indexRequest) {
...
}
}
How to supply destination name image.index.queue
from configuration (e.g. application.properties
) instead of a hardcoded value?