Spring整合ActiveMQ

 官方相关知识点文档:http://activemq.apache.org/spring-support.html

 Jar Maven 搜索地址:http://search.maven.org/

 环境

  spring 2.5.6

  ActiveMQ 5.7

 额外Jar

   (根据名称在Maven搜索里可以查询到所有版本的Jar,可下载,也可查询到POM格式)

   activemq-spring

   xbean-spring 

 配置文件

(放在Spring配置文件中即可,也可单独XML文件存放)

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:amq="http://activemq.apache.org/schema/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd

  http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">

<amq:broker useJmx="false" persistent="false">

<amq:transportConnectors>

<amq:transportConnector uri="tcp://localhost:61616" />

</amq:transportConnectors>

</amq:broker>

</beans>

你可能感兴趣的:(activemq)