title: spring-amqp will not insert message using AmqpTemplate.convertAndSend()
body: <p>Here is a small Spring program that is expected to insert a message into a rabbitmq queue:</p>
  
  <pre><code>public class Main {
    public static void main(String [] args) throws IOException {
      AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(QueueConfiguration.class);
      AmqpTemplate template = context.getBean(AmqpTemplate.class);
      template.convertAndSend("asdflk ...");
      context.destroy();
    }
  }
  </code></pre>
  
  <p>The ApplicationContext is as follows:</p>
  
  <pre><code>@Configuration
  public class QueueConfiguration {
  
    @Bean
    public ConnectionFactory connectionFactory() {
      return new CachingConnectionFactory("192.168.1.39");
    }
  
    @Bean
    public RabbitTemplate rabbitTemplate() {
      return new RabbitTemplate(connectionFactory());
    }
  }
  </code></pre>
  
  <p>When I check the contents of the queues on the server, nothing gets inserted. I also tried to set the name of the exchange or the name of the queue on the RabbitTemplate, but still nothing shows up on the server. </p>
  
  <p>The log of the application does not show any errors, but logs this:</p>
  
  <pre><code>17:28:02.441 [main] DEBUG o.s.amqp.rabbit.core.RabbitTemplate - Executing callback on RabbitMQ Channel: Cached Rabbit Channel: AMQChannel(amqp://guest@192.168.1.39:5672/,1)
  17:28:02.441 [main] DEBUG o.s.amqp.rabbit.core.RabbitTemplate - Publishing message on exchange [], routingKey = []
  </code></pre>
  
  <p>Any ideas what's wrong?</p>