手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Spring整合ActiveMQ

[日期:2013-02-20] 来源:Linux社区  作者:libangsen [字体: ]

环境
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>

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款