exchange.getOut().setHeader("header1",exchange.getIn().getHeader("Name")); exchange.getOut().setHeader("header2",exchange.getIn().getHeader("Company")); exchange.getOut().setBody(exchange.getIn().getBody(String.class)); System.out.println(); System.out.println("Message for "+exchange.getOut().getHeader("header1") +" of "+exchange.getOut().getHeader("header2")+":"); System.out.println(exchange.getOut().getBody(String.class));
If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!