template.sendBodyAndHeader just send a InOnly exchange to endpoint.
If you want to get the response, you need to use the method start with request.
if you want to check header you may need to use this method, and setup the in 
message header and body in the processor.

Exchange request(String endpointUri, Processor processor);  

--  
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, March 14, 2013 at 3:36 PM, sridurga wrote:

> Hi,
>  
> I am using the below code.. but i am not able to check the headername and
> body message.. Can you let me know how to check it out ?
>  
> template.sendBodyAndHeader("activemq:MyQueue",  
> "<hello>world!</hello>",
> "CustomerRating", "Gold");
>  
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/how-to-check-header-name-and-body-in-the-output-tp5729158.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to