简体   繁体   English

Spring Integration Kafka消息驱动通道适配器接收消息

[英]Spring Integration Kafka message-driven-channel-adapter receive message

For spring-integration-kafka version 2.1.0.RELEASE, documentation seems to be outdated 对于spring-integration-kafka版本2.1.0.RELEASE, 文档似乎已过时

The example in the doc is incorrect as it doesn't match the constructor argument for KafkaMessageListenerContainer . 该文档中的示例不正确,因为它与KafkaMessageListenerContainer的构造函数参数不匹配。 Can somebody direct me how to create the bean correctly and corresponding Java code to process the message ? 有人可以指导我如何正确创建bean和相应的Java代码来处理消息吗?

<bean id="container1" class="org.springframework.kafka.listener.KafkaMessageListenerContainer">
        <constructor-arg>
            <bean class="org.springframework.kafka.core.DefaultKafkaConsumerFactory">
                <constructor-arg>
                    <map>
                        <entry key="bootstrap.servers" value="localhost:9092" />
                    </map>
                </constructor-arg>
            </bean>
        </constructor-arg>
        <constructor-arg name="topics" value="foo" />
</bean>

Sorry about that; 对于那个很抱歉; we'll fix the docs; 我们将修复文档; the correct documentation is in the quick start section . 正确的文档位于“ 快速入门”部分

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 spring集成消息驱动通道适配器 - spring integration message-driven-channel-adapter RecordFilterStrategy with int-kafka:message-driven-channel-adapter - RecordFilterStrategy with int-kafka:message-driven-channel-adapter Spring Integration message-driven-channel-adapter标签不遵守bean名称吗? - Spring Integration message-driven-channel-adapter tag not honoring bean name? 保护JMS消息驱动通道适配器 - Securing JMS message-driven-channel-adapter 消息驱动通道适配器或JMS网关的错误通道 - Error channel for message-driven-channel-adapter or JMS gateway 使用Spring Integration Java配置创建消息驱动的入站通道适配器以连接到Kafka - Creating a message driven inbound channel adapter to connect to Kafka using Spring integration java configuration 使用 spring 集成消息驱动的通道适配器配置 AtomikosConnectionFactoryBean - Configuring AtomikosConnectionFactoryBean with spring integration message driven channel adapter Spring-Integration-Kafka出站通道适配器发送消息 - Spring-Integration-Kafka outbound-channel-adapter Send message Java DSL中具有“选择器”创建功能的“ int-jms:message-driven-channel-adapter” - 'int-jms:message-driven-channel-adapter' with 'selector' creation in Java DSL Spring Integration中如何将目标值从许多消息驱动的通道适配器传递到公共入站通道 - How to pass the destination value from many message driven channel adapter to common inbound channel in spring integration
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM