Spring consolidated configuration for ACTIVEMQ Message Queuing

Source: Internet
Author: User

<!--ActiveMQ Connection factory--<!--can actually generate connection connectionfactory, provided by the corresponding JMS service provider--<!--if the network is connected: TCP://IP : 61616; Network not connected: tcp://localhost:61616 and Username, password--<!--<amq:connectionfactory id= "Amqconnectionfactory" BR Okerurl= "tcp://localhost:61616" username= "admin" password= "admin"/>--<bean id= "Amqconnectionfactory" class= "Org.apache.activemq.spring.ActiveMQConnectionFactory" > <property name= "brokerurl" value= "localhost : 61616 "></property> <property name=" UserName "value=" admin "></property> <property name=" Password "value=" admin "></property> </bean> <!--Spring Caching Connect Factory--<!--spring for Manage Real ConnectionFactory connectionfactory--and <bean id= "Mqconnectionfactory" class= " Org.springframework.jms.connection.CachingConnectionFactory "> <!--target connectionfactory corresponds to the real can generate JMS Connection ConnectionFactory--<property name= "TargEtconnectionfactory "ref=" Amqconnectionfactory ></property> <!--Ibid, same--and <!--&LT;CONSTR Uctor-arg ref= "Amqconnectionfactory"/>-<!--session cache count-<property name= "Sessioncache Size "value="/> </bean> <!--Spring jmstemplate message producer Start--> <!--definition jmstemplate qu Eue Type--<bean id= "jmsqueuetemplate" class= "Org.springframework.jms.core.JmsTemplate" > <!--this conne        Ctionfactory corresponds to the ConnectionFactory object that we defined spring provides--<constructor-arg ref= "Mqconnectionfactory"/>    <!--non-pub/sub model (publish/subscribe), that is, queue mode--<property name= "Pubsubdomain" value= "false"/> </bean> <!--define Jmstemplate topic Type--<bean id= "jmstopictemplate" class= "org.springframework.jms.core.JmsTemplate "> <!--this connectionfactory corresponds to the ConnectionFactory object that we defined spring provides--<constructor-arg ref=" Mqconnectionfactory "/>        <!--pub/sub Model (Publish/subscribe)-<property name= "Pubsubdomain" value= "true"/> </bean> 

Spring consolidated configuration for ACTIVEMQ Message Queuing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.