amulrajesh opened a new issue, #1429:
URL: https://github.com/apache/camel-kamelets/issues/1429

   Using kafka-connector and kamelets,
   
   I am setting some custom header in Processor,
   
   public class CustomProcessor implements Processor {
   @OverRide
   public void process(Exchange exchange) throws Exception {
   exchange.getMessage().setHeader("dummy", "dummy");
   exchange.getIn().setHeader("dummy", "dummy");
   }
   }
   
   And I am trying to get the header value (from above step) in Transformer,
   public class CamelToKafkaHeadersTransform<R extends ConnectRecord> implements
   Transformation {
   @OverRide
   public R apply(R record) {
   for(Header header : record.headers()) {
   System.out.println(header.key(), header.value());
   }
   }
   }
   
   Except the custom header I am able to print other camel header values.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to