zoukankan      html  css  js  c++  java
  • Activemq Tomcat 配置

    Spring   web.xml:

        <bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">  
            <property name="jndiName" value="${jms.jndi.connectionfactory}"></property> 
        </bean>
        
    <!--     Queue   -->
        <bean id="outgingDestination" class="org.springframework.jndi.JndiObjectFactoryBean">  
            <property name="jndiName" value="${jms.outgoing.destination}"></property>  
        </bean>   
        
        <bean id="incomingDestination" class="org.springframework.jndi.JndiObjectFactoryBean">  
            <property name="jndiName" value="${jms.incoming.destination}"></property>
        </bean>   

    jms.properties:

    jms.receive.timeout=5000
    
    jms.jndi.connectionfactory=java:comp/env/jms/NormalConnectionFactory
    
    jms.incoming.destination=java:comp/env/jms/queue/channel0
    
    jms.outgoing.destination=java:comp/env/jms/queue/channel1

    tomcat  conf/context.xml  (Eclipse Servers) :

    <Resource name="jms/NormalConnectionFactory" auth="Container"
            type="org.apache.activemq.ActiveMQConnectionFactory" description="JMS Connection Factory"
            factory="org.apache.activemq.jndi.JNDIReferenceFactory" brokerURL="tcp://10.135.63.33:61616"
            brokerName="localhost" userName="system" password="manager"
            useAsyncSend="true" useEmbeddedBroker="false" />
        <Resource name="jms/queue/channel0" auth="Container"
            type="org.apache.activemq.command.ActiveMQQueue" factory="org.apache.activemq.jndi.JNDIReferenceFactory"
            physicalName="test.queue" />
    
        <Resource name="jms/queue/channel1" auth="Container"
            type="org.apache.activemq.command.ActiveMQQueue" factory="org.apache.activemq.jndi.JNDIReferenceFactory"
            physicalName="test.replyqueue" />
  • 相关阅读:
    信令基本概念
    CMMI
    关于OpenDataSource, OpenRowSet
    冒泡排序
    使用Sqlldr向oracle导入数据
    PowerDesigner生成sql和反向工程生成ER图的问题
    2021.1.4 学习总结
    12天 —— 关于生活与目标的思考【2020.8.5~2020.8.17】
    大一暑假学习总结(七)【2020.7.28~2020.8.4】
    学习:用javascript增加、删除行(转)
  • 原文地址:https://www.cnblogs.com/shaman/p/2961941.html
Copyright © 2011-2022 走看看