title: Subscribe to multiple topic destination in ActiveMQ Messaging
body: <p>A publisher publishes messages to different destinations. My client needs to subscribe and get all those messages in those destinations one by one.Means i want to consume messages from multiple topics. Also I want the topic messages (different destinations) to be received in a button action, not by using Message Listener. Can anyone please help on this?
  Part of my code is.</p>
  
  <pre><code>    MessageConsumer consumer = null;
      if (isDurableSubscription) {
  
          // the subscription Name assigned to a durable subscription must be unique within a given client ID.
          consumer = session.createDurableSubscriber( topic, subscriptionName );  
      } else {
          consumer = session.createConsumer( topic ); 
      }
  
      log.finest("consumer = " + consumer );
  
      consumer.setMessageListener( this );
  
      conn.start();
  </code></pre>
  
  <p>}</p>
  
  <pre><code>public void onMessage(Message message) {
      if ( message instanceof TextMessage ) {
  
          try {
              TextMessage txtMessage = (TextMessage) message;
  
              String text = txtMessage.getText();
              this.msg = text;
              System.out.println(text);
              log.finest("Message processed ...");
  
              session.commit();
  
          }
  </code></pre>