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`
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
ActiveMQ是Apache软件基金会所研发开源的消息中间件,为应用程序提供高效的、可扩展的、稳定的和安全的企业级消息通信。抛开网络服务(Network Services)不说,我们应该知道的是ActiveMQ的三个重要组成部分:连接(Connectors)、消息模式(Topic,Queue)、消息持久化方式。 连接(Connectors) ActiveMQ提供了多种应用协议,如OpenWire、StompREST、WSNotification、XMPP、AMQP等,不同的协议有不同的特点,OpenWire用的比较多。 我们要在应用中使用ActiveMQ,根据JSM规范,需要获得一个JMS connection factory,然后再去创建connection,这个时候往往需要指定所使用的的协议。 消息模式 ActiveMQ提供了两种消息模式:点对点模式(Queue)、发布订阅模式(Topic),这两种模式基本上可以覆盖大部分的需求了
资源推荐
资源详情
资源评论
收起资源包目录
ActiveMQ是Apache软件基金会所研发开源的消息中间件,为应用程序提供高效的、可扩展的、稳定的和安全的企业级消息通信 (533个子文件)
jmx.access 982B
activemq 26KB
activemq.bat 4KB
activemq-admin.bat 4KB
InstallService.bat 2KB
InstallService.bat 2KB
activemq.bat 2KB
activemq.bat 2KB
UninstallService.bat 2KB
UninstallService.bat 2KB
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
login.config 1KB
Listener.cpp 5KB
Listener.cpp 5KB
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
wrapper.dll 80KB
wrapper.dll 75KB
wrapper.exe 216KB
wrapper.exe 200KB
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 942B
共 533 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
一念花开~
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功