Prereqs
=======
These examples use the [ActiveMQ-CPP](http://activemq.apache.org/cms) C++ library,
1. [Download the latest release from the ActiveMQ-CPP website)
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.8.2 -I/usr/local/apr/include/apr-1 -lactivemq-cpp -lstdc++
gcc publisher.cpp -o publisher -I/usr/local/include/activemq-cpp-3.8.2 -I/usr/local/apr/include/apr-1 -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`
没有合适的资源?快使用搜索试试~ 我知道了~
activeMQ-cpp 测试文件
共3个文件
cpp:2个
md:1个
5星 · 超过95%的资源 需积分: 9 20 下载量 129 浏览量
2014-12-11
21:13:14
上传
评论 1
收藏 4KB RAR 举报
温馨提示
在安装好activeMQ 并且 装好activeMQ-cpp库,(可看我的教程),即可用此测试是否成功
资源推荐
资源详情
资源评论
收起资源包目录
cpp.rar (3个子文件)
cpp
Publisher.cpp 4KB
Listener.cpp 4KB
readme.md 1KB
共 3 条
- 1
资源评论
- vawe7772016-10-25非常好的分享。
- cheris02018-10-05感谢分享,教程没找到
木偶_wei
- 粉丝: 11
- 资源: 34
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功