splitter: 1.0.0-spring-ingetration - message-driven channel-adapter
authorKai Moritz <kai@juplo.de>
Sun, 17 Jul 2022 17:03:18 +0000 (19:03 +0200)
committerKai Moritz <kai@juplo.de>
Mon, 18 Jul 2022 17:17:25 +0000 (19:17 +0200)
commit0bcf271cffe6d7263d76dc6618af9a03b4cb6179
treed71934f380038c6ade9ad4908f3ce1cb91968c00
parent9f82f66f1a9ed3194889fee1b69a10287c4b03db
splitter: 1.0.0-spring-ingetration - message-driven channel-adapter

* Instead of the `@InboundChannelAdapter`-annotation, a
  `KafkaMessageDrivenChannelAdapter` can be instanciated.
* The adapter takes a `AbstractMessageListenerContainer` as constructor
  argument.
* The output-channel must be set explicitly on the created instance.
* This approach is advantageous, if technical details are important,
  because the used `MessageListenerContainer` can be configured explicitly.
src/main/java/de/juplo/kafka/wordcount/splitter/SplitterApplication.java