title: Read message from exchange with Rabbit Template
body: <p>I'm using <code>rabbitTemplate</code> in this way:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;bean id="rabbitConnFactory" class="org.springframework.amqp.rabbit.connection.SingleConnectionFactory"&gt;
      &lt;constructor-arg&gt;
          &lt;value&gt;localhost&lt;/value&gt;
      &lt;/constructor-arg&gt;
  &lt;/bean&gt;
  
  &lt;!-- Spring AMQP Template --&gt;
  &lt;bean id="rabbitTemplate" class="org.springframework.amqp.rabbit.core.RabbitTemplate"&gt;
      &lt;property name="connectionFactory" ref="rabbitConnFactory" /&gt;
  &lt;/bean&gt;
  
  &lt;!-- Spring AMQP Admin --&gt;
  &lt;bean id="rabbitAdmin" class="org.springframework.amqp.rabbit.core.RabbitAdmin"&gt;
      &lt;constructor-arg ref="rabbitConnFactory" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>send to exchange:</p>
  
  <pre><code>rabbitTemplate.setExchange(exchange);
  rabbitTemplate.convertAndSend(message);
  </code></pre>
  
  <p>read from exchange:</p>
  
  <pre><code>rabbitTemplate.setExchange(exchange);
  rabbitTemplate.setQueue(exchange);                //?
  Object msg = rabbitTemplate.receiveAndConvert();
  return msg;
  </code></pre>
  
  <p>(I need to set the exchange runtime, because I got it from the database)</p>
  
  <p>but <code>msg</code> is always <code>null</code>.</p>