How to listen to dynamic destinations using Spring Boot?
We have an application using Spring Boot and its JMS facility. At runtime, we have different producers that jump online and tell our application the name of the topic or queue to listen to. Right now, we have: @JmsListener(destination = "helloworld.q") public void receive(String message) { LOGGER.info("received message='{}'", message); } which works when we send a message to the helloworld.q topic. The problem is, we won't know what the name of the topic will be until runtime, and JmsListener seems to want a constant expression. Message producers will hook into our ActiveMQ instance and