I am using kafka output channel adapter to send the messages.Is there any way to get the offset after delivering the message, below is my code
<int-kafka:outbound-channel-adapter id="kafkaCommonOutboundChannelAdapter"
kafka-template="kafkaTemplate"
header-mapper="kafkaHeaderMapper"
auto-startup="true"
topic-expression="headers['topic']"
partition-id-expression="headers['partition']"
sync="true">
<int-kafka:request-handler-advice-chain>
<ref bean="requestHandlerAdvice"/>
<ref bean="retryAdvice"/>
</int-kafka:request-handler-advice-chain>
</int-kafka:outbound-channel-adapter>
<bean id="requestHandlerAdvice"
class="org.springframework.integration.handler.advice.ExpressionEvaluatingRequestHandlerAdvice">
<property name="trapException" value="true"/>
<property name="onSuccessExpression" ref="success"/>
<property name="successChannelName" value="successChannel"/>
<property name="onFailureExpression" ref="failure"/>
<property name="failureChannelName" value="failureChannel"/>
</bean>
Thanks