4 Replies Latest reply on Jul 14, 2014 12:40 PM by Raul Silva

    Retrieve headers message in camel route (SwitchYard 1.1)

    Raul Silva Newbie



      Is it posible retrieve inside camel route any heders value ?


      I have the folowing route:


      <?xml version="1.0" encoding="ASCII"?>

      <routes xmlns="http://camel.apache.org/schema/spring">


              <from uri="switchyard://RouteServiceInter"/>

              <log message=" Start --------->  "/>

              <log message="Header - message received: ${headers.queryParams}"/>



                  <simple>Hello how are you? </simple>


              <log message="Headersr - message received: ${headers}"/>

              <to uri="switchyard://IpsServiceInter"/>

              <log message="RouteServiceInter - message received: ${body}"/>



      But,  log name "Header" don`t show nothing.

      I need to retrieve "queryParams" or "queryString".

      Thanks and advance,