如何从大气中的其他框架(彗星)触发通知? [英] how to trigger notification from other framework in atmosphere (comet)?

查看:113
本文介绍了如何从大气中的其他框架(彗星)触发通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

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

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组件(EJB,JMS,Akka / Scala Actor等)或具有不同范围的Web组件呢? (另一个Web应用程序,另一个Servlet等)?他们还可以使用Atmosphere的BroadcasterFactory生成服务器端事件

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 /星期五技巧 - 服务器端事件 - 你的websocketcomet-application /

这篇关于如何从大气中的其他框架(彗星)触发通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆