How to Read the Same Message again from the Kafka topic

How to Read the Same Message again from the Kafka topic

book

Article ID: KB0072041

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition 5.X, 6.X

Description

How to Read the Same Message again from the Kafka topic

Issue/Introduction

How to Read the Same Message again from the Kafka topic

Environment

All supported platforms

Resolution

To achieve this, abortRtc() can be done along with auto commit disabled (in this case the message is put back on the topic). This will ensure that the offset is committed only when the rule execution completes without error.

It all depends on the offset, if the offset proceeds further TIBCO BusinessEvents engine will receive the messages beyond that offset. So, we have to make sure that auto commit offset is disabled, and BE commits the offset in post rtc so again this has to be prevented by calling abortRtc().