Hi all,

I config a route in xml file

                 *<route>
                        <from uri="activemq:test" />
                        <process ref="MyProcessor" />
                        <to uri="activemq:${in.header.fieldname}" />
                        
                </route>*

and here i MyProcessor class
   * public class MyProcessor implements Processor {

    public void process(Exchange exchange) throws Exception {
        exchange.getIn().setHeader("fieldname", "valuename");   
    }

}*

Above code can not show "valuename" by ${in.header.fieldname}.
Please give me some advice,
Thanks,



--
View this message in context: 
http://camel.465427.n5.nabble.com/Access-header-in-camel-route-tp5788372.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to