Flex 中 Comet 实现的示例
我正在寻找一个示例,说明如何从 Flex/Actionscript 到支持 Comet 的 Java 服务器进行长时间运行的 HTTP 调用。 另外,长时间运行的http调用通常用于将数据从服务器推送到客户端,我想用于将数据“流式传输”到客户端,例如大表的数据。 在调用完成之前,客户端应该已经显示一些数据。 我知道 Adobe 的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
嗯...有一个 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...
我不知道Blaze是否使用LCDS,但是Blaze有能力做到COMET:
(来自 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:
(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