title: How to listen to topic using spring boot jms
body: <p>I am trying to listen to topic using the below snippet. However its listening to queue by default. There is no xml config in this case. I am completely relying on annotations. Moreover I have relied completely on the AutoConfiguration provided by Spring boot. I am not sure how to set the destination type as topic, In JmsListener. Spring JMS gurus please help.</p>
  
  <pre><code>    @Component
      public class MyTopicListener {
  
          @JmsListener(destination = "${trans.alert.topic}")
          public void receiveMessage(TransactionAlert alert) {
              logger.info("AlertSubscriberEmail :: Sending Email =&gt; &lt;" + alert + "&gt;");
          }
      }
  </code></pre>