rocketmq-consumer.xml 874 字节
Newer Older
武汉红喜's avatar
武汉红喜 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans-3.2.xsd"
       default-autowire="byName">

    <bean class="org.hongxi.whatsmars.mq.rocketmq.spring.ConsumerFactoryBean">
        <property name="consumerGroup" value="quick_start_consumer_group" />
        <property name="namesrvAddr" value="127.0.0.1:9876" />
        <property name="topic" value="TopicTest" />
        <property name="tags" value="*" />
        <property name="messageListener" ref="demoMessageListener" />
    </bean>

武汉红喜's avatar
武汉红喜 已提交
16
    <bean id="demoMessageListener" class="org.hongxi.whatsmars.mq.rocketmq.spring.demo.DemoMessageListener" />
武汉红喜's avatar
武汉红喜 已提交
17
</beans>