博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Running Multiple ActiveMQ Instances on One Machine
阅读量:6401 次
发布时间:2019-06-23

本文共 2065 字,大约阅读时间需要 6 分钟。

  hot3.png

The Integration Zone is brought to you in partnership with . Learn more about by watching their on-demand webinar.

A few weeks ago I started making use of  again as the provider with my  solution. Since it had been a few years that I used ActiveMQ I thought it would be nice to check out some of the (new) features like the  transport and . To be able to test these last things I needed multiple installations of ActiveMQ on my machine. Luckily this isn’t very hard to accomplish, although  on the ActiveMQ site is quite minimal.

The first step is to download and unzip the ActiveMQ package, which I did at ~/develop/apache-activemq-5.8.0.

To create the instances I go to the activeMQ home directory and use the ‘create’ command like this:

cd develop/apache-activemq-5.8.0/./bin/activemq create instanceA./bin/activemq create instanceB

Now if you do a ‘ls -l’ you will see that there are two subdirectories created, ‘instanceA’ and ‘instanceB’. Since both instances will make use of the default ports we have to modify the config for the second instance. Go to the directory ‘develop/apache-activemq-5.8.0/instanceB/conf’ and open the file ‘jetty.xml’ to make the webconsole available at port ’8162′ by modifying the following line:

  

Next open the file ‘activemq.xml’ in the same directory and modify the following part:

  
  
  
 

That’s it! Make sure both files are saved and start the first instance with:

cd ~/develop/apache-activemq-5.8.0/instanceA/bin./instanceA console

Open up a new console and run the commands:

cd /Users/pascal/develop/apache-activemq-5.8.0/instanceB/bin./instanceB console

Now you have two instances running next to each other and can start testing the ‘advanced’ functions of ActiveMQ.

The Integration Zone is brought to you in partnership with . Learn more about by watching their on-demand webinar.

Published at DZone with permission of Pascal Alma, DZone MVB. ()

Opinions expressed by DZone contributors are their own.

转载于:https://my.oschina.net/daquan/blog/483219

你可能感兴趣的文章
如何将kux格式的视频转换成我们常用的MP4格式
查看>>
[sublime系列文章] sublime text 3插件配置说明
查看>>
学习 PixiJS — 碰撞检测
查看>>
Vue 基础篇
查看>>
JavaScript:函数防抖与函数节流
查看>>
关于区间贪心的补全
查看>>
架构设计步骤
查看>>
自定义元素探秘及构建可复用组件最佳实践
查看>>
区块链是一个公共数据库,要放在一个块内
查看>>
Jenkins 用户文档(目录)
查看>>
系统常见指标
查看>>
使用crond构建linux定时任务及日志查看
查看>>
地图绘制初探——基于maptalks的2.5D地图绘制
查看>>
SpringBoot2.0之七 实现页面和后台代码的热部署
查看>>
Git 仓库大扫除
查看>>
设计模式-单例模式
查看>>
es6基础0x014:WeakMap
查看>>
九种 “姿势” 让你彻底解决跨域问题
查看>>
php中mysqli 处理查询结果集总结
查看>>
你不知道的JavaScript运算符
查看>>