From e0fddb03ca3c4807eea904d335260d6ce1b1933d Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 3 Jun 2023 12:14:10 +0200 Subject: [PATCH] WIP --- src/main/java/de/juplo/kafka/ApplicationConfiguration.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/de/juplo/kafka/ApplicationConfiguration.java b/src/main/java/de/juplo/kafka/ApplicationConfiguration.java index ef3db82..7a0ee37 100644 --- a/src/main/java/de/juplo/kafka/ApplicationConfiguration.java +++ b/src/main/java/de/juplo/kafka/ApplicationConfiguration.java @@ -84,6 +84,7 @@ public class ApplicationConfiguration Properties props = new Properties(); props.put("bootstrap.servers", properties.getBootstrapServer()); props.put("client.id", properties.getClientId()); + props.put("transactional.id", properties.getClientId()); // TODO! props.put("acks", properties.getAcks()); props.put("batch.size", properties.getBatchSize()); props.put("delivery.timeout.ms", 20000); // 20 Sekunden -- 2.20.1