使用 Jabber 发送网络消息
(也在 ServerFault 上询问,建议我在其中发布此处也如此)
当其他用户在线提交报告内容时,我们需要通过网络向各个用户(合规性、生产)发送桌面警报。
目前我们正在使用 NET SEND,但这不能保证传送,并且从客户端和服务器的角度来看都证明是不可靠的(我认为在更高版本的 Windows 中将不支持;我们当前运行的是 XP)。
我们正在考虑基于 Jabber 的解决方案,但有人使用 Jabber 客户端像 NET SEND 那样在屏幕上弹出警报消息,而不是仅仅将聊天窗口放在前面或在系统附近显示临时“toast”消息托盘。
我们需要警报消息是持久的,并且只能被用户忽略,表明他们已经看到了它。 Toast 风格的弹出窗口就可以,只要它不仅是在有限的时间内并且必须再次被用户关闭。
有什么解决办法吗?
(Also asked over on ServerFault, where I was advised to post it here too)
We have a requirement to send desktop alerts to various users (compliance, production) across a network when other users have submitted content online for a report.
At present we are using NET SEND but this has no guarantee of delivery and has proved unreliable from both client and server perspective (and I gather will be unsupported in later versions of Windows; we are currently running XP).
We are considering a Jabber-based solution but has anyone used a Jabber client to pop up alert messages on the screen like NET SEND does, as opposed to just bringing a chat window to the front or displaying a temporary 'toast' message near the system tray.
We need the alert message to be persistent and only dismissed by the user, indicating they have seen it. Toast-style pop-ups would be fine as long as it was not only for a limited time and again had to be dismissed by the user.
Any solutions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Openfire 是一个基于 java 的 Jabber 服务器,似乎针对企业/业务环境,并通过 Spark 客户端提供“toast”消息功能。 他们还提供其他一些有用的以业务为中心的功能。
Openfire is a java based Jabber server that seems to be targeted to a corporate/business environment and provides the "toast" message feature with their Spark client. They also offer several other useful business-focused features.
XMPP 规范不保证离线消息传递。 这取决于具体的服务器实现。 此外,支持用户帐户也有成本。
作为一个开箱即用的解决方案,它很好,但由于我们处于开发社区,我会
考虑使用 MessageQueue 构建警报系统以保证交付。
Offline message delivery is not guaranteed by XMPP specification. It depends on concrete server implementation. Moreover, it has cost in supporting user accounts.
As an out-of-box solution it is fine, but since we are in development community, I would
consider building alert system using MessageQueue for guaranteed delivery.
XMPP 的消息传递语义可能非常适合您的应用程序,因为您不是在谈论需要信托级别传递保证的金融交易。 它肯定会比 NET SEND 好很多。
编写一个简单的客户端来侦听消息并以您想要的任何格式执行弹出窗口,并让程序在后台运行,可能带有托盘图标。 使用 Jabber-Net 编写类似的内容需要花费几个小时,例如。
The message-delivery semantics of XMPP are liable to be a good fit for your application, since you're not talking about financial transactions that require fiduciary-level delivery guarantees. It will certainly be better than NET SEND by a lot.
Write a simple client that listens for messages and does the pop-ups in whatever format you want, and have the program run in the background, perhaps with a tray icon. Writing something like that with Jabber-Net would be the work of a few hours, for example.