如何触发大气中其他框架(彗星)的通知?

发布于 2024-09-06 14:42:15 字数 199 浏览 1 评论 0原文

基本上我已经阅读了一些示例,但所有示例都独立包含在一个 servlet 中。 如:使用doGet建立长轮询连接,然后使用doPost触发事件通知所有挂起的连接。

这是我的问题:我在 spring mvc 中有其他 Web 操作编程,在 spring mvc 控制器中,用户通过 /message/post 发布消息,我怎样才能使此操作触发大气处理程序以通知挂起的连接?

basically i have read some samples, but all are self contained in one servlet.
such as: use doGet to establish the long polling connection, and then use doPost to trigger the event to notify all suspended connections.

Here is my question: I have other web actions programming in spring mvc, in the spring mvc controller a user post a message via /message/post, how can I make this action to trigger the atmosphere handler to notify the suspended connections?

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

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

发布评论

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

评论(1

狼性发作 2024-09-13 14:42:15

但是非 Web 组件(EJB、JMS、Akka/Scala Actor 等)或具有不同范围的 Web 组件(另一个 Web 应用程序、另一个 Servlet 等)又如何呢?他们还可以使用 Atmosphere 的 BroadcasterFactory 生成服务器端事件

http://jfarcand.wordpress.com/2010/06/18/trick-of-the-friday-1-delivering-server-side-events-到您的 websocketcomet-application/

But what about non web components (EJB, JMS, Akka/Scala Actor, etc.) or web component with different scope (another web application, another Servlet, etc.)? They can also generate server sides events by using Atmosphere’s BroadcasterFactory

http://jfarcand.wordpress.com/2010/06/18/trick-of-the-friday-1-delivering-server-side-events-to-your-websocketcomet-application/

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