title: spring boot configure multiple ActiveMQ instances
body: <p>I have requirement to move messages from queues on one ActiveMQ instance to another ActiveMQ instance. Is there a way to connect to two different ActiveMQ instances using spring boot configuration? </p>
  
  <p>Do I need to create multiple connectionFactories? If so then how does JmsTemplate know which ActiveMQ instance to connect to?</p>
  
  <pre><code>  @Bean
      public ConnectionFactory connectionFactory() {
          return new ActiveMQConnectionFactory(JMS_BROKER_URL);
      }
  </code></pre>
  
  <p>Any help and code examples would be useful.</p>
  
  <p>Thanks in advance.
  GM</p>