[
https://issues.apache.org/jira/browse/CAMEL-9467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anbumani Balusamy updated CAMEL-9467:
-------------------------------------
Attachment: camel-kafka-callback.zip
[~davsclaus]
Please find the attachment. I have added async with callback to the producer
logic. org.apache.kafka.clients.producer.callback has onCompletion() which will
give RecordMetadata (partition id, offset and topic name ). I feel it's better
to include message Id and actual message along with RecordMetadata so that user
will know which message was sent successfully. So i have added
KafkaProducerCallback. Kindly look into
org.apache.camel.component.test.KafkaProducerTest for the implementation
details and let me know your comments/suggestions.
Thanks!
Anbu
> Camel-Kafka: Upgrade to kafka 0.9 and use the Java client instead of Scala
> --------------------------------------------------------------------------
>
> Key: CAMEL-9467
> URL: https://issues.apache.org/jira/browse/CAMEL-9467
> Project: Camel
> Issue Type: Task
> Components: camel-kafka
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Fix For: 2.17.0
>
> Attachments: camel-kafka-Anbu.zip, camel-kafka-callback.zip,
> camel-kafka-claus.zip, camel-kafka.zip, camel-kafka.zip
>
>
> From release 0.9.0.0 the Kafka Consumer/Producer configuration properties
> seems to be changed a little.
> Also we have to use the new Java implementation of Kafka Producer/Consumer,
> actually we are using the Scala version
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)