7.1 Java应用程序中嵌入ActiveMQ

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

7.1 Embedding ActiveMQ using Java

7.1 Java应用程序中嵌入ActiveMQ

Although most developers today use some kind of framework for composing their

applications, it’s always good to start with plain old Java. In this section we’ll initialize

and configure ActiveMQ using its Java APIs. You’ll see how to use the BrokerService

class to configure a broker using nothing but pure Java code.

目前,尽管大多数的开发者使用一些框架来组织他们的应用程序,但是使用原始的Java编码是一个好的开始.

扫描二维码关注公众号,回复: 683283 查看本文章

本节中我们将使用Java API来初始化和配置ActiveMQ,你将看到如何通过纯Java代码使用BrokerService类

来配置代理.

Next, we’ll describe how you can configure your broker using custom configuration

XML files. We’ll use the BrokerFactory class to achieve this and you’ll learn how

you can use regular configuration files to embed the broker in your Java applications.

After this section you’ll be able to embed ActiveMQ with any configuration in your

Java applications.

接下来,我们将讨论如何使用自定义的XML文件配置代理,我们还会通过BrokerFactory类使用常规的配置

文件将代理嵌入到你自己的Java应用程序中.通过本小节的学习,你将能够使用任何配置将ActiveMQ嵌入

到你自己的Java应用程序中.

7.1.1 Embedding ActiveMQ using the BrokerService

7.1.1 使用BrokerService嵌入ActiveMQ

............

猜你喜欢

转载自jackyin5918.iteye.com/blog/1968013
7.1