title: Apache camel,RabbitMQ how to send messages/objects
body: <p>I hope someone can provide some help on this matter. </p>
  
  <p>I am using camel rabbitmq and for testing purpose I am trying to send a message to the queue, which I'm trying to display in rabbitmq interface and then also read it back. </p>
  
  <p>However I can't get this working. </p>
  
  <p>What I believe works is that I created, in the exchange tab of rabbitmq management interface, a new exchange. 
  In my java code I send the message to that exchange. When the code is executed, I can see a spike in the web interface showing that something has been received but I can't see what has been received. 
  When I try to read, I can't read and get the following errror: 
  &lt; in route: Route(route2)[[From[rabbitmq://192.168.59.103:5672/rt... because of Route route2 has no output processors. You need to add outputs to the route such as to("log:foo"). </p>
  
  <p>Can someone provide me a practical example on how to send a message,see it in the web interace and also read it? any tutorial showing this process will be also appreciated. </p>
  
  <p>Thank you</p>
  
  <p>=================
  SECOND PART</p>
  
  <p>The error I'm getting now is the following:</p>
  
  <pre><code>Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; reason: {#method&lt;channel.close&gt;(reply-code=406, reply-text=PRECONDITION_FAILED - cannot redeclare exchange 'rhSearchExchange' in vhost '/' with different type, durable, internal or autodelete value, class-id=40, method-id=10), null, ""}
      at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:67)
      at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:33)
      at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:343)
      at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:216)
      at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:118)
      ... 47 more
  </code></pre>
  
  <p>I have the following settings:</p>
  
  <p>I get this error, I believe I’m doing something wrong with the URI and I have to define some extra parameters that I’m missing
  My exchange is of direct type
  My queue is of durable type 
  And my uri is : 
  rabbitmq://192.168.59.105:5672/rhSearchExchange?username=guest&amp;password=guest&amp;routingKey=rhSearchQueue</p>
  
  <p>any input on this?</p>
  
  <p>Thanks</p>