2 Replies Latest reply on Oct 4, 2011 6:47 AM by jamie archibald

    setHeader() + constant() + header() pattern?

    jamie archibald Apprentice

      I haven't been able to figure out how to do the following using a pattern


      // ugly way!!!

      .process(new Processor() {

         process(Exchange exg) {

            exchange.getIn().setHeader("MyHeader", "Hello World" + exg.getIn().getHeader("FetchHeader"));




      I was hoping to do something like this but it doesnt work:


      .setHeader("MyHeader", constant("Hello World ${in.headers.FetchHeader"));


      any ideas?