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>
  • 相关阅读:
    Java 插入排序
    Java 浮点型与双精度数值比较
    Java 包装类Integer的值比较
    ORA-00942 table or view does not exist
    logging模块
    面向对象
    模块和包
    异常处理
    序列化模块
    css3选择器
  • 原文地址:https://www.cnblogs.com/lsx1993/p/4626676.html
Copyright © 2011-2022 走看看