WIP
authorKai Moritz <kai@juplo.de>
Sun, 17 Jul 2022 16:11:40 +0000 (18:11 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 17 Jul 2022 16:11:40 +0000 (18:11 +0200)
src/main/java/de/juplo/kafka/wordcount/splitter/SplitterApplication.java
src/main/resources/integration.xml

index 94dc1c8..e1d2e10 100644 (file)
@@ -24,9 +24,9 @@ public class SplitterApplication
 
 
        @Bean
-       SplitterApplicationProperties properties()
+       String outputTopic()
        {
-               return properties;
+               return properties.getOutputTopic();
        }
 
        @InboundChannelAdapter(channel = "recordings")
index c67cccf..4971132 100644 (file)
@@ -14,7 +14,7 @@
       id="foo"
       channel="words"
       kafka-template="kafkaTemplate"
-      topic-expression="#properties.getOutputTopic()"
+      topic-expression="outputTopic"
       message-key-expression="headers['kafka_receivedMessageKey']" />
 
 </beans>