7.2 Spring中集成 ActiveMQ

本文介绍了如何在Spring环境中集成ActiveMQ消息中间件。ActiveMQ默认采用Spring XML配置,便于将其作为代理嵌入到Spring应用程序中。文章探讨了多种集成方法及其适用场景。

博客搬家,更好阅读体验,猛戳 http://www.jack-yin.com/english/translation/activemq-in-action/1552.html

 

7.2 Embedding ActiveMQ using Spring

7.2 Spring中集成 ActiveMQ

 

ActiveMQ is developed with Spring in mind. In fact, ActiveMQ uses a Spring XML configuration

file by default. This makes it easy to embed an ActiveMQ broker in Springenabled

applications. This section will explore numerous methods for utilizing

ActiveMQ with Spring. Although there are advantages and disadvantages to some

methods, and some are recommended more than others, no single method is the best

one. The decision on which method to use typically can be made by considering your

application and system architecture, the skill set of your developers, and the difficulty

to maintain the solution once it’s deployed to your production systems.

 

ActiveMQ是基于Spring思想开发的.实际上,默认情况下ActiveMQ使用Spring格式的XML配置文件.这样

可以很容易的将ActiveMQ代理嵌入到使用Spring的程序中.本节将介绍几种在Spring中使用ActiveMQ

的方法,这些方法各有优缺点,其中一些方法比其他的更值得推荐,不存在某个最好好的方法.开发时具体使用

那种方法取决于你的程序和系统架构,开发人员技术水平以及应用部署到生成系统后系统维护方案的难易

程度.

 

7.2.1 Pure Spring XML

7.2.1 纯Spring XML配置

 

......

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值