Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Support custom Producer RecordMessageConverter #290

Closed
powturns opened this issue Oct 30, 2019 · 0 comments · Fixed by #291
Closed

Support custom Producer RecordMessageConverter #290

powturns opened this issue Oct 30, 2019 · 0 comments · Fixed by #291
Assignees
Milestone

Comments

@powturns
Copy link

It appears that it isn't possible to specify a custom RecordMessageConverter for a producer. While you are able to set the message converter on the KafkaProducerMessageHandler's template, internally the handler constructs a ProducerRecord and then calls KafkaTemplate.send(ProducerRecord<K, V> record) which bypasses the template's message converter.

See: https://github.com/spring-projects/spring-integration-kafka/blob/master/src/main/java/org/springframework/integration/kafka/outbound/KafkaProducerMessageHandler.java#L411

Original spring-cloud-stream issue: spring-cloud/spring-cloud-stream-binder-kafka#790

@garyrussell garyrussell self-assigned this Oct 30, 2019
@garyrussell garyrussell added this to the 3.2.1 milestone Oct 30, 2019
garyrussell added a commit to garyrussell/spring-integration-kafka that referenced this issue Oct 30, 2019
artembilan pushed a commit that referenced this issue Oct 30, 2019
garyrussell added a commit to garyrussell/spring-integration that referenced this issue Jun 24, 2020
artembilan pushed a commit to spring-projects/spring-integration that referenced this issue Jun 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging a pull request may close this issue.

2 participants