From: Kai Moritz <kai@juplo.de>
Date: Sat, 2 Nov 2024 18:31:35 +0000 (+0100)
Subject: WIP
X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=da2753f9670cb364a4c9e4603021c052f4328a51;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 8437bb46..3057dfab 100644
--- a/src/main/java/de/juplo/kafka/ApplicationConfiguration.java
+++ b/src/main/java/de/juplo/kafka/ApplicationConfiguration.java
@@ -48,6 +48,7 @@ public class ApplicationConfiguration
     props.put("client.id", properties.getClientId());
     props.put("group.id", properties.getConsumerProperties().getGroupId());
     props.put("enable.auto.commit", false);
+    props.put("isolation.level", "read_committed");
     if (properties.getConsumerProperties().getAutoOffsetReset() != null)
     {
       props.put("auto.offset.reset", properties.getConsumerProperties().getAutoOffsetReset().name());
@@ -70,7 +71,7 @@ public class ApplicationConfiguration
     Properties props = new Properties();
     props.put("bootstrap.servers", properties.getBootstrapServer());
     props.put("client.id", properties.getClientId());
-    props.put("transactional.id", "my-tx");
+    props.put("transactional.id", properties.getClientId());
     props.put("acks", properties.getProducerProperties().getAcks());
     props.put("batch.size", properties.getProducerProperties().getBatchSize());
     props.put("metadata.maxage.ms",   5000); //  5 Sekunden