Transactional binder producer factory
With a transactional binder, the producer factory should not be destroyed. Resolves #626
This commit is contained in:
committed by
Gary Russell
parent
efd46835a1
commit
33603c62f0
@@ -314,7 +314,9 @@ public class KafkaMessageChannelBinder extends
|
||||
List<PartitionInfo> partitionsFor = producer
|
||||
.partitionsFor(destination.getName());
|
||||
producer.close();
|
||||
((DisposableBean) producerFB).destroy();
|
||||
if (this.transactionManager == null) {
|
||||
((DisposableBean) producerFB).destroy();
|
||||
}
|
||||
return partitionsFor;
|
||||
}, destination.getName());
|
||||
this.topicsInUse.put(destination.getName(),
|
||||
|
||||
Reference in New Issue
Block a user