Refer changes done for
The change causes a critical bug.
For a camel route as follows:
KafkaExchange will be created by KafkaConsumer and the topic will be set to "T1" in the header.
For the 'to' endpoint, KafkaProducer will try to read the topic from the exchange header which is still "T1" instead of "T2" thereby causing an infinite loop.
As discussed in user-group, a different header should be used to read the topic name from message.