Hi all,
my camel route is defined as follows :
<bean id="testbean" class="com.CamelWeb.Transformer" />
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route id="route1">
<from uri="servlet:///application1"/>
<transform>
<method bean="testbean" method="testData"/>
</transform>
<to uri="activemq:queue:inbox"/>
</route>
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 :
"+body);
}
the system out statement actually prints the message body.
my query is, is it possible to access header values in the message in
<transform>
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:
http://camel.465427.n5.nabble.com/using-transform-to-read-header-tp5734659.html
Sent from the Camel - Users mailing list archive at Nabble.com.