You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "amulrajesh (via GitHub)" <gi...@apache.org> on 2023/03/30 17:42:12 UTC
[GitHub] [camel-kamelets] amulrajesh opened a new issue, #1429: Transformer not printing the custom headers set in Processor
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-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-kamelets] oscerd closed issue #1429: Transformer not printing the custom headers set in Processor
Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd closed issue #1429: Transformer not printing the custom headers set in Processor
URL: https://github.com/apache/camel-kamelets/issues/1429
--
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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-kamelets] oscerd commented on issue #1429: Transformer not printing the custom headers set in Processor
Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd commented on issue #1429:
URL: https://github.com/apache/camel-kamelets/issues/1429#issuecomment-1491583008
Answered here: https://github.com/apache/camel-kafka-connector/issues/1520
--
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-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org