From: Kai Moritz Date: Thu, 30 Jun 2022 14:58:08 +0000 (+0200) Subject: WIP X-Git-Tag: wip-integration-xml~5 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=98a62b865d094978934310feb437cd71bcb28fca;p=demos%2Fkafka%2Fwordcount WIP --- 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"> + +