<!--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 <!--<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