title: Apache Artemis - Route messages by addresses with multiple queues
body: <p>I have this scenario:</p>
  
  <pre><code>ADDRESS1:
     -ADDRESS1.QUEUE1
     -ADDRESS1.QUEUE2
  
  ADDRESS2:
     -ADDRESS2.QUEUE1
     -ADDRESS2.QUEUE2
  </code></pre>
  
  <p>Two addresses with multiple anycast queues. I need to route messages to a specify queue into the address.</p>
  
  <p>Example:</p>
  
  <pre><code>Messages on ADDRESS1::ADDRESS1.QUEUE1 goes to -&gt; ADDRESS2::ADDRESS2.QUEUE1 
  Messages on ADDRESS1::ADDRESS1.QUEUE2 goes to -&gt; ADDRESS2::ADDRESS2.QUEUE2
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>CamelContext context = new DefaultCamelContext();
      ConnectionFactory factory = new ActiveMQConnectionFactory("admin", "admin", "tcp://0.0.0.0:61616");
  
      context.addComponent("artemis", JmsComponent.jmsComponentAutoAcknowledge(factory));
  
      context.addRoutes(new RouteBuilder() {
  
          @Override
          public void configure() throws Exception {
              from("artemis:ADDRESS1::ADDRESS1.QUEUE1")
              .log("${body}")
              .to("artemis:ADDRESS2::ADDRESS2.QUEUE1");
          }
      });
  
      context.addRoutes(new RouteBuilder() {
  
          @Override
          public void configure() throws Exception {
              from("artemis:ADDRESS1::ADDRESS1.QUEUE2")
              .log("${body}")
              .to("artemis:ADDRESS2::ADDRESS2.QUEUE2");
          }
      });
  </code></pre>
  
  <p>With this code I'm able only to consume messages from a specific queue. But ".to" doesn't work.
  Is there any way to do that?</p>
  
  <p>I need to do that because I have many applications that are consumers, so I want to use address to separate the queues "by application". </p>
  
  <p>Like this:</p>
  
  <pre><code>APP1
     QUEUE1
     QUEUE2
     QUEUE3
  </code></pre>
  
  <p>Thanks in advance.</p>