Flex 中 Comet 实现的示例

发布于 2024-07-15 21:42:42 字数 216 浏览 3 评论 0原文

我正在寻找一个示例,说明如何从 Flex/Actionscript 到支持 Comet 的 Java 服务器进行长时间运行的 HTTP 调用。 另外,长时间运行的http调用通常用于将数据从服务器推送到客户端,我想用于将数据“流式传输”到客户端,例如大表的数据。 在调用完成之前,客户端应该已经显示一些数据。 我知道 Adob​​e 的 LCDS 支持此功能,但我对使用 HTTP 直接获取数据的低级实现感兴趣。

I'm looking for an example of how to do a long running HTTP call from Flex/Actionscript to a Java server that supports Comet. Also long running http calls are usually used for pushing data from the server to the client, I would like to used for "streaming" data to the client, for example data for a large table. The client should show already some data before the call is finished. I know that LCDS from Adobe supports this, but I'm interested in a low level implementation that would get the data directly using HTTP.

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

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

发布评论

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

评论(2

情仇皆在手 2024-07-22 21:42:42

嗯...有一个 googlecode 项目名为“flexcomet”,该项目旨在是Bayeux 协议的实现。 我自己根本没玩过这个……

Well ... there is a googlecode project named 'flexcomet' that purports to be an implementation of the Bayeux protocol. Not played with this at all myself...

不念旧人 2024-07-22 21:42:42

我不知道Blaze是否使用LCDS,但是Blaze有能力做到COMET:

通过以下方式发布和订阅消息
HTTP 发布和订阅
使用 HTTP 实时消息主题
流式或长轮询 (COMET)
相同的可靠性和整体
服务质量与传统一样
胖客户端应用程序,使
创造创新和
协作实时体验。

消息传递和实时
基础设施,使用本机网络
协议,实现协作和
内置数据推送应用程序
使用本机时以可靠的方式
网络协议,扩展到数百个
每个 CPU 的客户端数。实时示例
包括性能监控,
实时新闻源和事件
追踪。 合作实例
包括聊天、辅助销售、直播
帮助和引导式自助服务。

(来自 http://labs.adobe.com/wiki/index.php/ BlazeDS:Release_Notes

您可以下载包含示例应用程序的交钥匙发行版,看看 Blaze 是否能满足您的需求。

http://opensource.adobe.com/wiki/display/blazeds/Release+构建

I do not know if Blaze uses LCDS, but Blaze has the ability to do COMET:

Publish and subscribe messaging over
HTTP Publish and subscribe to
message topics in real time using HTTP
streaming or long polling (COMET) with
the same reliability and overall
quality of service as traditional
thick client applications, enabling
the creation of innovative and
collaborative real-time experiences.

The messaging and real time
infrastructure, using native web
protocols, enables collaboration and
data push applications to be built in
a reliable manner while using native
web protocols, scaling to hundreds of
clients per CPU.Real-time examples
include performance monitoring,
real-time news feeds, and incident
tracking. Collaboration examples
include chat, assisted selling, live
help, and guided self-service.

(from http://labs.adobe.com/wiki/index.php/BlazeDS:Release_Notes)

You can download the turnkey distro that contains an example application to see if Blaze would meet your needs.

http://opensource.adobe.com/wiki/display/blazeds/Release+Builds

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