到 ASP 应用程序 (MVC3) 的异步消息传递(ActiveMQ、MSMQ)

发布于 2024-12-21 18:27:32 字数 322 浏览 4 评论 0原文

我一直在阅读有关使用 MVC3 和 SignalR 库的客户端之间的异步消息传递的文章(http://sergiotapia.com/2011/09/signalr-with-mvc3-chat-app-build-asynchronous-real-time-persistant-connection -websites/)

我们目前在一些胖客户端应用程序中使用 activemq,并使用主题向每个人广播数据。有谁知道这种东西是否也可以在 MVC3 中使用?

我想创建一个不需要用户安装任何东西(甚至可以在手机上使用)的应用程序,但它将监视不断变化的数据。我们说的是每 2-3 秒刷新一次数据。

I have been reading articles about asynchronous messaging between clients using MVC3 and the SignalR library (http://sergiotapia.com/2011/09/signalr-with-mvc3-chat-app-build-asynchronous-real-time-persistant-connection-websites/)

We currently use activemq for some of our fat client apps and use topics to broadcast data to everyone. Does anyone know if this sort of thing could be used in MVC3 as well?

I'd like to create an application that doesn't require a user to install anything (and could even be used on a phone), but it would be monitoring continuously-changing data. We're talking refreshing data every 2-3 seconds.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

烟花易冷人易散 2024-12-28 18:27:32

如果您想与客户端(浏览器)进行异步消息传递,请使用 SignalR。 ActiveMQ 和 MSMQ 是用于胖客户端和服务器到服务器通信的技术。它们需要安装(MSMQ 需要 Windows 安装)并且无法从浏览器访问它们(我可以想象通过 ActiveX 或 Java 小程序中的 ActiveMQ 访问 MSMQ,但这不是您想要的)。

If you want to have asynchronous messaging with client (browser) use SignalR. ActiveMQ and MSMQ are technologies for thick clients and server-to-server communication. They require installation (MSMQ requires windows installation) and they are not accessible from browser (well I can imagine accessing MSMQ through ActiveX or ActiveMQ from Java applet but that is not what you are looking for).

冰火雁神 2024-12-28 18:27:32

一种可能的方法是构建一个 Web 服务,该服务将通过 AMQ/MSMQ 的 API 实现与 AMQ/MSMQ 的通信,并从您的网页轮询该 Web 服务(例如通过 ajax 调用)以根据需要刷新数据。

One of the possible ways to go is to build a web service which will implement communication with AMQ/MSMQ via their APIs and do poll this web service from your webpage (via ajax call for example) to refresh the data as it's needed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文