ibps-message-consumer.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <beans xmlns="http://www.springframework.org/schema/beans"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xmlns:context="http://www.springframework.org/schema/context"
  5. xmlns:aop="http://www.springframework.org/schema/aop"
  6. xmlns:tx="http://www.springframework.org/schema/tx"
  7. xmlns:rabbit="http://www.springframework.org/schema/rabbit"
  8. xmlns:util="http://www.springframework.org/schema/util"
  9. xsi:schemaLocation="http://www.springframework.org/schema/beans
  10. http://www.springframework.org/schema/beans/spring-beans.xsd
  11. http://www.springframework.org/schema/context
  12. http://www.springframework.org/schema/context/spring-context.xsd
  13. http://www.springframework.org/schema/aop
  14. http://www.springframework.org/schema/aop/spring-aop.xsd
  15. http://www.springframework.org/schema/tx
  16. http://www.springframework.org/schema/tx/spring-tx.xsd
  17. http://www.springframework.org/schema/util
  18. http://www.springframework.org/schema/util/spring-util.xsd
  19. http://www.springframework.org/schema/rabbit
  20. http://www.springframework.org/schema/rabbit/spring-rabbit-1.0.xsd"
  21. default-autowire="byName" default-lazy-init="false">
  22. <!-- mq 消息发送实现类注册 -->
  23. <bean id="messageHandlerList" class="java.util.ArrayList">
  24. <constructor-arg>
  25. <list>
  26. <ref bean="innerMessageQueueHandler" />
  27. <ref bean="mailMessageQueueHandler" />
  28. <ref bean="smsMessageQueueHandler" />
  29. <ref bean="wechatMessageQueueHandler" />
  30. </list>
  31. </constructor-arg>
  32. </bean>
  33. <util:map id="messageQueueHandlers" map-class="java.util.HashMap">
  34. <entry key="innerMessageQueueHandler" value-ref="innerMessageQueueHandler"/>
  35. <entry key="mailMessageQueueHandler" value-ref="mailMessageQueueHandler"/>
  36. <entry key="smsMessageQueueHandler" value-ref="smsMessageQueueHandler"/>
  37. <entry key="wechatMessageQueueHandler" value-ref="wechatMessageQueueHandler"/>
  38. </util:map>
  39. </beans>