title: How do I know that my message was sent successfully with spring amqp?
body: <p>I am writing to a RabbitMQ queue with spring amqp using the RabbitTemplate class.  I use the convertAndSend method to send messages to the queue.  This works well under normal situations, but it seems to fail silently if the queue doesn't exist.  No exception is thrown and no error/debug message is logged to the logger.</p>
  
  <p>What is the best way for me to make sure the message was delivered?</p>
  
  <p>Here is an example of what the code is doing currently.</p>
  
  <pre><code>RabbitTemplate template = new RabbitTemplate(factory);
  template.setQueue(queueName);
  template.setRoutingKey(queueName);
  template.convertAndSend(message);
  </code></pre>