Merge der Upgrades für Confluent/Spring-Boot ('endless-stream-producer')
[demos/kafka/training] / src / main / java / de / juplo / kafka / Application.java
index bc617a8..9f3e3ed 100644 (file)
@@ -14,31 +14,6 @@ import java.util.concurrent.Executors;
 @EnableConfigurationProperties(ApplicationProperties.class)
 public class Application
 {
-  @Autowired
-  ApplicationProperties properties;
-
-
-  @Bean
-  public EndlessProducer producer()
-  {
-    Assert.hasText(properties.getBootstrapServer(), "producer.bootstrap-server must be set");
-    Assert.hasText(properties.getClientId(), "producer.client-id must be set");
-    Assert.hasText(properties.getTopic(), "producer.topic must be set");
-
-    EndlessProducer producer =
-        new EndlessProducer(
-            Executors.newFixedThreadPool(1),
-            properties.getBootstrapServer(),
-            properties.getClientId(),
-            properties.getTopic(),
-            properties.getAcks(),
-            properties.getThrottleMs());
-
-    producer.start();
-
-    return producer;
-  }
-
   public static void main(String[] args)
   {
     SpringApplication.run(Application.class, args);