From: Kai Moritz Date: Sat, 3 Jun 2023 10:14:10 +0000 (+0200) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=e0fddb03ca3c4807eea904d335260d6ce1b1933d;p=demos%2Fkafka%2Ftraining WIP --- 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