You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sridurga <sr...@cognizant.com> on 2013/03/14 08:31:33 UTC

how to check header name and body in the output

Hi,

     I am using the below code.. can you let me know how to see the
headername and body message what i had put in the queue?

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-tp5729157.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: how to check header name and body in the output

Posted by Claus Ibsen <cl...@gmail.com>.
On Thu, Mar 14, 2013 at 8:31 AM, sridurga <sr...@cognizant.com> wrote:
> Hi,
>
>      I am using the below code.. can you let me know how to see the
> headername and body message what i had put in the queue?
>
> template.sendBodyAndHeader("activemq:MyQueue",
>    "<hello>world!</hello>",
>    "CustomerRating", "Gold");
>
>

You can use the ActiveMQ web console to browse the messages on the queue.
http://activemq.apache.org/web-console.html

Or use the new hawtio webconsole which is a much more modern web
console than what the old web console from ActiveMQ offers
http://hawt.io/


Or you can use JMX API and browse the messages from jconsole.



Or you can use the Camel browse component
http://camel.apache.org/browse

But then you would need to write some code, and in theory have to walk
through all the messages on the queue, till you find your message.


If the queue is empty, you can also just use Camel to consume the
message using the ConsumerTemplate, and see its values



>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/how-to-check-header-name-and-body-in-the-output-tp5729157.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen