title: How to configure simple RabbitMQ message producer with Spring Integration
body: <p>I'd like to configure a simple RabbitMQ message producer using Spring Integration constructs. The requirement is very basic: just a simple fire-and-forget, sending an event message to a queue, no response required.
  I've configured the connection factory, RabbitTemplate and outbound channel adapter (see below), but missing the last piece: the code that actually sends the message out to the channel.
  Thanks in advance.</p>
  
  <pre><code>&lt;rabbit:connection-factory id="producerRabbitConnectionFactory" 
          channel-cache-size="${amqp.channel.cache.size}"
          host="${amqp.hostname}"
          port="${amqp.port}" 
          virtual-host="${amqp.vhost}" 
          username="${amqp.username}"
          password="${amqp.password}"
          requested-heartbeat="${amqp.heartbeat}"
  /&gt;
  
  &lt;bean id="producerRabbitTemplate" class="org.springframework.amqp.rabbit.core.RabbitTemplate"&gt;
          &lt;property name="connectionFactory" ref="producerRabbitConnectionFactory" /&gt;
          &lt;property name="exchange" value="${amqp.exchange.event}" /&gt;
          &lt;property name="routingKey" value="${amqp.routingKey.event}" /&gt;
  &lt;/bean&gt;
  
  &lt;int:channel id="outboundAmqpChannel" /&gt;
  
  &lt;int-amqp:outbound-channel-adapter id="outboundAmqpChannelAdapter"
                                 channel="outboundAmqpChannel"
                                 amqp-template="producerRabbitTemplate"
                                 default-delivery-mode="NON_PERSISTENT"
                                 lazy-connect="true"/&gt;
  </code></pre>