title: multiple Rabbitmq queues with spring boot
body: <p>From spring boot tutorial:
  <a href="https://spring.io/guides/gs/messaging-rabbitmq/" rel="noreferrer">https://spring.io/guides/gs/messaging-rabbitmq/</a></p>
  
  <p>They give an example of creating 1 queue and 1 queue only, but, what if I want to be able to create more then 1 queue? how would it be possible?</p>
  
  <p>Obviously, I can't just create the same bean twice:</p>
  
  <pre><code>@Bean
  Queue queue() {
      return new Queue(queueNameAAA, false);
  }
  
  @Bean
  Queue queue() {
      return new Queue(queueNameBBB, false);
  }
  </code></pre>
  
  <p>You can't create the same bean twice, it will make ambiguous.</p>