anchor.diff:  // endpoint options: END
   
   
  -
  -
   See
   http://www.rabbitmq.com/releases/rabbitmq-java-client/current-javadoc/com/rabbitmq/client/ConnectionFactory.html[http://www.rabbitmq.com/releases/rabbitmq-java-client/current-javadoc/com/rabbitmq/client/ConnectionFactory.html]
   and the AMQP specification for more information on connection options.
   
  -### Custom connection factory
  +=== Using connection factory
  +
  +To connect to RabbitMQ you can setup a `ConnectionFactory` (same as with JMS) with the login details such as:
   
   [source,xml]
  -----------------------------------------------------------------------------------------
  -<bean id="customConnectionFactory" class="com.rabbitmq.client.ConnectionFactory">
  +----
  +<bean id="rabbitConnectionFactory" class="com.rabbitmq.client.ConnectionFactory">
     <property name="host" value="localhost"/>
     <property name="port" value="5672"/>
     <property name="username" value="camel"/>
     <property name="password" value="bugsbunny"/>
   </bean>
  +
  +And then refer to the connection factory in the endpoint uri as shown below:
  +
   <camelContext>
     <route>
       <from uri="direct:rabbitMQEx2"/>
  -    <to uri="rabbitmq://localhost:5672/ex2?connectionFactory=#customConnectionFactory"/>
  +    <to uri="rabbitmq://localhost:5672/ex2?connectionFactory=#rabbitConnectionFactory"/>
     </route>
   </camelContext>
  -----------------------------------------------------------------------------------------
  -
  -
  -Headers
  +----
  +
  +
  +=== Message Headers
   
   The following headers are set on exchanges when consuming messages.
   
   [width="100%",cols="10%,90%",options="header",]
  -|=======================================================================
  +|===
   |Property |Value
   
   |`rabbitmq.ROUTING_KEY` |The routing key that was used to receive the message, or the routing key
  
positive.code: behavior. If the value is false (by default) then the message is
  discarded/dead-lettered. If the value is true, then the message is
  re-queued. 
  |=======================================================================
  
  The following headers are used by the producer. If these are set on the
  camel exchange then they will be set on the RabbitMQ message.
  
  [width="100%",cols="10%,90%",options="header",]
  |=======================================================================
  |Property |Value
  
  |`rabbitmq.ROUTING_KEY` |The routing key that will be used when sending the message
  
negative.code: exchange produced messages will sent to. In the case of consumers, the
  exchange name determines which exchange the queue will bind to.
  
  === Options
  
  // component options: START
  The RabbitMQ component has no options.
  // component options: END
  
  
  // endpoint options: START
  