committed by
Oleg Zhurakousky
parent
2f6d5df7bc
commit
b0c4f0cfcd
@@ -439,9 +439,10 @@ public class KafkaMessageChannelBinder extends
|
||||
final ConsumerRecord<?, ?> record = message.getHeaders()
|
||||
.get(KafkaHeaders.RAW_DATA, ConsumerRecord.class);
|
||||
|
||||
if (this.transactionManager == null && extendedConsumerProperties.isUseNativeDecoding()) {
|
||||
if (extendedConsumerProperties.isUseNativeDecoding()) {
|
||||
if (record != null) {
|
||||
Map<String, String> configuration = dlqProducerProperties.getConfiguration();
|
||||
Map<String, String> configuration = this.transactionManager == null ? dlqProducerProperties.getConfiguration()
|
||||
: this.configurationProperties.getTransaction().getProducer().getConfiguration();
|
||||
if (record.key() != null && !record.key().getClass().isInstance(byte[].class)) {
|
||||
ensureDlqMessageCanBeProperlySerialized(
|
||||
configuration,
|
||||
|
||||
Reference in New Issue
Block a user