Prereqs
=======
These examples use the [ActiveMQ-CPP](http://activemq.apache.org/cms) C++ library,
but unfortunately they don't work with the latest 3.2.4 release, you have to either
wait for a subsequent release of do a source build of the project trunk. Until then,
you will need to
1. [Checkout the ActiveMQ-CPP trunk source code](http://activemq.apache.org/cms/source.html)
2. [Build and Install](http://activemq.apache.org/cms/building.html)
Building
========
This will vary depending on where you installed your libraries and the compiler
you are using but on my Ubuntu system, I compiled the examples as follows:
gcc Listener.cpp -o listener -I/usr/local/include/activemq-cpp-3.2.4 -I/usr/include/apr-1.0 -lactivemq-cpp -lstdc++
gcc Publisher.cpp -o publisher -I/usr/local/include/activemq-cpp-3.2.4 -I/usr/include/apr-1.0 -lactivemq-cpp -lstdc++
Running the Examples
====================
Note: You may need to update set an environment variable so that the
activemq-cpp shared libraries can be loaded. For example on my Ubuntu
system I had to add the following to my profile:
export LD_LIBRARY_PATH=/usr/local/lib
In one terminal window run:
./listener
In another terminal window run:
./publisher
You can control to which stomp server the examples try to connect to by
setting the following environment variables:
* `ACTIVEMQ_HOST`
* `ACTIVEMQ_PORT`
* `ACTIVEMQ_USER`
* `ACTIVEMQ_PASSWORD`
没有合适的资源?快使用搜索试试~ 我知道了~
apache-activemq-5.16.5-bin.tar.gz 下载(5积分)
需积分: 50 13 下载量 127 浏览量
2022-08-17
16:59:47
上传
评论
收藏 61.24MB GZ 举报
温馨提示
Apache ActiveMQ是Apache软件基金会的一个开源项目,是一个基于消息的通信中间件。ActiveMQ是JMS的一个具体实现,支持JMS的两种消息模型。ActiveMQ使用AMQP协议集成多平台应用,使用STOMP协议通过websockets在Web应用程序之间交换消息,使用MQTT协议管理物联网设备 ActiviMq消息队列,可解决服务解耦合的动作,缓解了服务并发量很大而造成服务器无法处理的状况。
资源详情
资源评论
资源推荐
收起资源包目录
apache-activemq-5.16.5-bin.tar.gz 下载(5积分) (548个子文件)
jmx.access 965B
activemq 26KB
activemq 15KB
activemq 15KB
activemq 15KB
activemq-diag 6KB
broker-localhost.cert 592B
SendMessage.class 7KB
ApplicationContextFilter.class 5KB
WebConsoleStarter.class 4KB
BindingBeanNameUrlHandlerMapping.class 3KB
OsgiConfiguration.class 3KB
MoveMessage.class 2KB
CopyMessage.class 2KB
RetryMessage.class 2KB
DeleteMessage.class 2KB
DeleteJob.class 2KB
CreateSubscriber.class 2KB
PurgeDestination.class 2KB
ApplicationContextFilter$2.class 2KB
ResumeDestination.class 2KB
PauseDestination.class 2KB
ApplicationContextFilter$1.class 2KB
DeleteSubscriber.class 1KB
CreateDestination.class 1KB
DeleteDestination.class 1KB
WebConsoleStarter$OsgiUtil.class 634B
wrapper.conf 7KB
wrapper.conf 7KB
wrapper.conf 7KB
login.config 1016B
Listener.cpp 4KB
Listener.cpp 4KB
Publisher.cpp 4KB
Publisher.cpp 4KB
Listener.cs 3KB
Listener.cs 3KB
Publisher.cs 3KB
Publisher.cs 3KB
NMSTracer.cs 2KB
NMSTracer.cs 2KB
NMSTracer.cs 2KB
NMSTracer.cs 2KB
AssemblyInfo.cs 2KB
AssemblyInfo.cs 2KB
AssemblyInfo.cs 2KB
AssemblyInfo.cs 2KB
Publisher.csproj 2KB
Listener.csproj 2KB
Publisher.csproj 2KB
Listener.csproj 2KB
bootstrap.min.css 70KB
bootstrap.min.css 70KB
bootstrap.min.responsive.css 8KB
bootstrap.min.responsive.css 8KB
site.css 7KB
site.css 7KB
site.css 7KB
style.css 6KB
type-settings.css 3KB
type-settings.css 3KB
type-settings.css 3KB
chat.css 2KB
chat.css 2KB
sorttable.css 1KB
sorttable.css 1KB
sorttable.css 1KB
prettify.css 1KB
prettify.css 1KB
prettify.css 1KB
chat.css 1KB
unittest.css 822B
env 6KB
spacer.gif 43B
spacer.gif 43B
spacer.gif 43B
iecanvas.htc 12KB
iecanvas.htc 12KB
amq_test.html 14KB
chat.html 9KB
index.html 8KB
index.html 7KB
index.html 7KB
index.html 7KB
index.html 6KB
index.html 6KB
500.html 6KB
403.html 6KB
404.html 5KB
user-guide.html 5KB
login.html 4KB
portfolio.html 2KB
send.html 2KB
index.html 920B
favicon.ico 4KB
activemq-all-5.16.5.jar 17.61MB
scala-library-2.11.11.jar 5.48MB
camel-core-2.25.4.jar 4.93MB
guava-31.0.1-jre.jar 2.84MB
ecj-3.17.0.jar 2.71MB
共 548 条
- 1
- 2
- 3
- 4
- 5
- 6
LIfe0115
- 粉丝: 13
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0