I'm using ReplyingKafkaTemplate.sendAndReceive() to send and receive a message correlated by correlation id. The use case have many topics on the way, and I need to manual acknoledge (commit) consumed messages offsets. So far so good, this is done using:
@KafkaListener(topics = "${kafka.topic.request-topic}")
@SendTo("int1")
public Tx30 listen(@Payload Tx30 request, Acknowledgment ack) throws InterruptedException {
...
ack.acknowledge();
But I don“t know how to manual acknoledge the last message (the one consumed by sendAndReceive().
Any hint how to do that?
Thanks
Fernando