Spring整合ActiveMQ

2014-11-24 08:12:38 · 作者: · 浏览: 2

环境
spring 2.5.6
ActiveMQ 5.7
额外Jar
(根据名称在Maven搜索里可以查询到所有版本的Jar,可下载,也可查询到POM格式)


activemq-spring
xbean-spring


配置文件


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


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