首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

spring停集成MQ配置

2013-11-09 
spring下集成MQ配置?xml version1.0 encodingUTF-8?beans xmlnshttp://www.springframework.or

spring下集成MQ配置
<?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"
xsi:schemaLocation="http://www.springframework.org/schema/beans
                     http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                     http://www.springframework.org/schema/context
                     http://www.springframework.org/schema/context/spring-context-3.0.xsd
                     http://www.springframework.org/schema/aop
                     http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
                     http://www.springframework.org/schema/tx
                     http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">

<context:component-scan base-package="com.hnacard.cardsale" />
<context:annotation-config  />
<bean
value="true" />
</bean>

<bean id="destination" value="${haha.haha.haha.queuename}" />
</bean>

<bean id="connectionFactory" value="${brokerURL}" />
<property name="sendTimeout" value="1000" />
</bean>
<bean id="hahaConsumerListener" ref ="asyncMsgService" />
</bean>


<bean id="jmsContainer"
ref="connectionFactory" />
<property name="destination" ref="destination" />
<property name="messageListener" ref="hahaConsumerListener" />
</bean>


</beans>

热点排行