How to transactionally poll Kafka from Camel?

前端 未结 2 1612
甜味超标
甜味超标 2020-12-10 09:14

I\'m currently working on message bus based on kafka and managed by camel and Spring. I have a XML route definition to poll events and retrieve the corresponding complete bu

2条回答
  •  半阙折子戏
    2020-12-10 09:35

    If you are getting null value from this exchange.getIn().getHeader(KafkaConstants.MANUAL_COMMIT, KafkaManualCommit.class)

    You need to set allowManualCommit=true in kafka uri

提交回复
热议问题