| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:aop="http://www.springframework.org/schema/aop"
- xmlns:tx="http://www.springframework.org/schema/tx"
- xmlns:rabbit="http://www.springframework.org/schema/rabbit"
- xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context.xsd
- http://www.springframework.org/schema/aop
- http://www.springframework.org/schema/aop/spring-aop.xsd
- http://www.springframework.org/schema/tx
- http://www.springframework.org/schema/tx/spring-tx.xsd
- http://www.springframework.org/schema/util
- http://www.springframework.org/schema/util/spring-util.xsd
- http://www.springframework.org/schema/rabbit
- http://www.springframework.org/schema/rabbit/spring-rabbit-1.0.xsd"
- default-autowire="byName" default-lazy-init="false">
- <!-- mq 消息发送实现类注册 -->
- <bean id="messageHandlerList" class="java.util.ArrayList">
- <constructor-arg>
- <list>
- <ref bean="innerMessageQueueHandler" />
- <ref bean="mailMessageQueueHandler" />
- <ref bean="smsMessageQueueHandler" />
- <ref bean="wechatMessageQueueHandler" />
- </list>
- </constructor-arg>
- </bean>
-
- <util:map id="messageQueueHandlers" map-class="java.util.HashMap">
- <entry key="innerMessageQueueHandler" value-ref="innerMessageQueueHandler"/>
- <entry key="mailMessageQueueHandler" value-ref="mailMessageQueueHandler"/>
- <entry key="smsMessageQueueHandler" value-ref="smsMessageQueueHandler"/>
- <entry key="wechatMessageQueueHandler" value-ref="wechatMessageQueueHandler"/>
- </util:map>
-
- </beans>
|