title: How to listen queue different virtual hosts?
body: <p>I need to connect multiple virtual hosts at the same time because I want to listen to queues in multiple hosts. Configuration-based mode only creates one connection by default. How can I create multiple connections? How do I specify a different connection factory when registering listeners with annotations?</p>
  
  <pre><code>spring.rabbitmq.host=10.0.0.0
  spring.rabbitmq.port=5672
  spring.rabbitmq.username=test
  spring.rabbitmq.password=test
  spring.rabbitmq.virtual-host=ABC
  </code></pre>
  
  <p>How do you specify a connection factory in multiple registered listeners?</p>
  
  <pre><code>@RabbitListener(queues = Constants.QUEUE_NAME)
      public void receiveMessage(Test message) {
          System.out.println("Received &lt;" + message.getA() + "&gt;");
  }
  </code></pre>