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编码是一个好的开始.

本节中我们将使用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

 

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值