zoukankan      html  css  js  c++  java
  • ActiveMQ集成到Spring

    【http://wentao365.iteye.com/blog/1560934】

    spring配置文件applicationContext.xml 

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>
        <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
            <property name="brokerURL">
                <value>tcp://localhost:61616?wireFormat.maxInactivityDuration=0</value>
            </property>
        </bean>
        <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
            <property name="connectionFactory">
                <ref bean="connectionFactory"/>
            </property>
        </bean>
        <bean id="destination" class="org.apache.activemq.command.ActiveMQQueue">
            <constructor-arg index="0">
                <value>MessageQueue</value>
            </constructor-arg>
        </bean>
    </beans>
  • 相关阅读:
    Mybatis中#{}与${}的区别:
    JDBC
    JavaScript与jQuery的区别
    JavaScript 高级
    AdminLTE
    servlet过滤器与监听器
    数据库连接池
    大对象数据LOB的应用
    Serializable
    泛型
  • 原文地址:https://www.cnblogs.com/lsx1993/p/4626676.html
Copyright © 2011-2022 走看看