camel-rabbitmq producer is not including the body

2013-08-07 Thread dalewking
Trying to consume from rabbitmq using the camel-rabbitmq component and the
problem is the body of the message is not being passed down the line.

Debugging and looking at the source, I see that in
RabbitMQConsumer.RabbitConsumer.handleDelivery that the body is being passed
into the method, but nothing is done with that parameter.

An exchange is created from the envelope in
RabbitMQEndPoint.createRabbitExchange, that contains a DefaultMessage
instance for the in, but the only things set on the message are the routing
key, exchange name, and delivery tag headers. The body of the message is not
set and is therefore null.





--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-rabbitmq-producer-is-not-including-the-body-tp5736952.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: camel-rabbitmq producer is not including the body

2013-08-07 Thread Willem jiang
Hi,

Thanks for reporting it. I just filled a JIRA[1] and committed a fix for it.

[1]https://issues.apache.org/jira/browse/CAMEL-6617  

--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
  http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem




On Thursday, August 8, 2013 at 4:44 AM, dalewking wrote:

 Trying to consume from rabbitmq using the camel-rabbitmq component and the
 problem is the body of the message is not being passed down the line.
  
 Debugging and looking at the source, I see that in
 RabbitMQConsumer.RabbitConsumer.handleDelivery that the body is being passed
 into the method, but nothing is done with that parameter.
  
 An exchange is created from the envelope in
 RabbitMQEndPoint.createRabbitExchange, that contains a DefaultMessage
 instance for the in, but the only things set on the message are the routing
 key, exchange name, and delivery tag headers. The body of the message is not
 set and is therefore null.
  
  
  
  
  
 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/camel-rabbitmq-producer-is-not-including-the-body-tp5736952.html
 Sent from the Camel - Users mailing list archive at Nabble.com 
 (http://Nabble.com).