camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From indrayani <>
Subject using <transform> to read header
Date Mon, 24 Jun 2013 11:53:41 GMT
Hi all,
 my camel route is defined as follows :

 <bean id="testbean" class="com.CamelWeb.Transformer" />
  <camelContext xmlns="">
       <route id="route1">
           <from uri="servlet:///application1"/>
		<method bean="testbean" method="testData"/>
            <to uri="activemq:queue:inbox"/>

in the testdata method, i am accessing the body as follows

public static void testData(String body)
		body = body.replaceAll("\n", "<br/>");
		System.out.println("-------------- inside transformer : testdata :

the system out statement actually prints the message body.

my query is,  is it possible to access header values in the message in
another question is , i was searching for this explanation that how why am i
getting the message body for <transform>

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message