|
@@ -1,9 +1,15 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<beans xmlns="http://www.springframework.org/schema/beans"
|
|
|
|
|
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
|
|
+<!-- 查找最新的schemaLocation 访问 http://www.springframework.org/schema/ -->
|
|
|
|
|
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:amq="http://activemq.apache.org/schema/core"
|
|
|
|
|
+ xmlns:jms="http://www.springframework.org/schema/jms"
|
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
|
- http://www.springframework.org/schema/beans/spring-beans-3.2.xsd"
|
|
|
|
|
- default-autowire="byName">
|
|
|
|
|
|
|
+ http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
|
|
|
|
|
+ http://www.springframework.org/schema/context
|
|
|
|
|
+ http://www.springframework.org/schema/context/spring-context-3.2.xsd
|
|
|
|
|
+ http://www.springframework.org/schema/jms
|
|
|
|
|
+ http://www.springframework.org/schema/jms/spring-jms-4.1.xsd
|
|
|
|
|
+ http://activemq.apache.org/schema/core
|
|
|
|
|
+ http://activemq.apache.org/schema/core/activemq-core-5.8.0.xsd">
|
|
|
|
|
|
|
|
<!-- 连接工厂 -->
|
|
<!-- 连接工厂 -->
|
|
|
<bean id="activeMqConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
|
|
<bean id="activeMqConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
|
|
@@ -35,12 +41,13 @@
|
|
|
</bean>
|
|
</bean>
|
|
|
|
|
|
|
|
<!-- 消费者 -->
|
|
<!-- 消费者 -->
|
|
|
- <bean id="defaultQueueMessageListener" class="com.zheng.cms.web.jms.defaultQueueMessageListener"/>
|
|
|
|
|
- <bean id="jmsContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer">
|
|
|
|
|
- <property name="connectionFactory" ref="connectionFactory"/>
|
|
|
|
|
- <property name="destination" ref="defaultQueueDestination"/>
|
|
|
|
|
- <property name="messageListener" ref="defaultQueueMessageListener"/>
|
|
|
|
|
- <!--<property name="concurrency" value="4-10"/>-->
|
|
|
|
|
- </bean>
|
|
|
|
|
|
|
+ <!--<bean id="defaultQueueMessageListener" class="com.zheng.cms.web.jms.defaultQueueMessageListener"/>-->
|
|
|
|
|
+ <!--<bean id="jmsContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer">-->
|
|
|
|
|
+ <!--<property name="connectionFactory" ref="connectionFactory"/>-->
|
|
|
|
|
+ <!--<property name="destination" ref="defaultQueueDestination"/>-->
|
|
|
|
|
+ <!--<property name="messageListener" ref="defaultQueueMessageListener"/>-->
|
|
|
|
|
+ <!--<!–<property name="concurrency" value="4-10"/>–>-->
|
|
|
|
|
+ <!--</bean>-->
|
|
|
|
|
+ <jms:annotation-driven/>
|
|
|
|
|
|
|
|
</beans>
|
|
</beans>
|