我是ActiveMQ技术的新用户,我在使用这项技术时遇到了一些问题。
我有以下情况:
现在我的问题是:如何将持久性队列存储在硬盘上,以便离线ARM设备生成的事件可供在线ARM系统使用(在线和之间唯一的“连接”)离线嵌入式设备是硬盘)?
请注意,我无法更改向在线服务器传输邮件的方式,因为它是我公司未开发的系统。
祝你好运
乔瓦尼
答案 0 :(得分:1)
It sounds like you want a "store-and-forward" messaging pattern. You could configure the "offline" ActiveMQ broker to attempt to connect to the "online" ActiveMQ broker. The network connector will attempt to connect at configurable intervals and when it is "online" it will begin to send messages automatically.
The slight down side is that the broker will attempt to connect to the remote broker (even when offline), so you'll need to manage log rotation or logging levels to accommodate.
Look for the static:// network connector uri