From 98a62b865d094978934310feb437cd71bcb28fca Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Thu, 30 Jun 2022 16:58:08 +0200 Subject: [PATCH] WIP --- .../kafka/wordcount/splitter/SplitterApplication.java | 9 --------- src/main/resources/integration-context.xml | 11 +++++++++-- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/main/java/de/juplo/kafka/wordcount/splitter/SplitterApplication.java b/src/main/java/de/juplo/kafka/wordcount/splitter/SplitterApplication.java index d9ba135..367efa0 100644 --- a/src/main/java/de/juplo/kafka/wordcount/splitter/SplitterApplication.java +++ b/src/main/java/de/juplo/kafka/wordcount/splitter/SplitterApplication.java @@ -55,15 +55,6 @@ public class SplitterApplication }; } - @InboundChannelAdapter(channel = "recordings") - @Bean - KafkaMessageSource source( - ConsumerFactory cf, - SplitterApplicationProperties properties) - { - return new KafkaMessageSource<>(cf, new ConsumerProperties(properties.getInputTopic())); - } - @Bean @ServiceActivator(inputChannel = "words") MessageHandler handler( diff --git a/src/main/resources/integration-context.xml b/src/main/resources/integration-context.xml index 6cf3ef5..f6ec728 100644 --- a/src/main/resources/integration-context.xml +++ b/src/main/resources/integration-context.xml @@ -1,6 +1,13 @@ + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:int="http://www.springframework.org/schema/integration" + xmlns:int-kafka="http://www.springframework.org/schema/integration/kafka" + xsi:schemaLocation=" + http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd + http://www.springframework.org/schema/integration https://www.springframework.org/schema/integration/spring-integration.xsd + http://www.springframework.org/schema/integration/kafka http://www.springframework.org/schema/integration/kafka/spring-integration-kafka.xsd"> + + -- 2.20.1