You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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<R>> implements
Transformation<R> {
@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.
The text was updated successfully, but these errors were encountered:
amulrajesh
changed the title
Unable to capture header set in Processor from Transformer
Transformer not printing the custom headers set in Processor
Mar 30, 2023
Using kafka-connector and kamelets,
I am setting some custom header in Processor,
And I am trying to get the header value (from above step) in Transformer,
Except the custom header I am able to print other camel header values.
The text was updated successfully, but these errors were encountered: