博客搬家,更好阅读体验,猛戳 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配置
......