title: Spring RabbitTemplate - How to create queues automatically upon send
body: <p>I am using RabbitMQ together with Spring's RabbitTemplate.</p>
  
  <p>When sending messages to queues using the template send methods, I want the queue to automatically be created/declared if it is not already exists.</p>
  
  <p>It is very important since according to our business logic queue names are generated on run-time and I cannot declare them in advance.</p>
  
  <p>Previously we have used JmsTemplate and any call to send or receive automatically created the queue.</p>