使用 Atmosphere 或 Cometd

发布于 2024-09-15 03:32:17 字数 40 浏览 9 评论 0原文

这两个 Java comet 库有什么区别?有理由选择其中之一吗?

What are the differences between these two Java comet libraries? Is there a reason to pick one over the other?

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

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

发布评论

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

评论(2

春庭雪 2024-09-22 03:32:17

根据我的个人经验,我强烈建议您远离它们! DWR团队重新开始开发,3.0版本即将准备就绪。

From my personal experiences, i higly suggest you to get away from both of them! DWR team turned back to start development and version 3.0 will be ready soon.

走走停停 2024-09-22 03:32:17

根据我自己使用 Atmosphere 框架的经验,它也存在一些缺乏文档和问题,例如必须将您自己的功能添加到实际协议中。它是最近才出现的,似乎正在获得更多的关注和支持,但它(仍然)没有一个庞大的社区支持。除此之外,它还有 Java 和 JavaScript 语言的服务器和客户端。它集成在 Vaadin 框架中,并且已经有许多与 Play 和 GWT 等其他框架一起使用的示例。 Atmosphere 的一个非常好的事情是它几乎支持任何容器:Tomcat、JBoss、Jetty、Glassfish...所以如果这是一个要求,那么它是一个不错的选择。

我不知道 Cometd 的经验,但通过环顾四周,我知道它似乎有很好的记录。不过 GH 存储库没有 Atmosphere 那么多的关注者。据我所知,它不支持与 Atmosphere 一样多的容器。

两者都与 Google Guice 和其他常见要求集成。

您还可以在这里找到一篇关于这个问题的旧文章,但是从那时起,这两个框架都发生了很大的变化:

http://www.ibm.com/developerworks/library/wa-reverseajax4/

From my own experience working with the Atmosphere framework it has some lack of documentation and issues too, like having to add your own functionality to the actual protocol. It is fairly recent and it seems to be gaining more traction and support but it (still) doesn't have a huge community behind it. Other than that it has both server and clients in Java and JavaScript. It's integrated in Vaadin framework and there are already many examples of use with other frameworks like Play and GWT. A very good thing about Atmosphere is that it virtually supports any container: Tomcat, JBoss, Jetty, Glassfish...so if this is a requirement it's a great choice.

Cometd I don't know from experience but what I know from looking around is that it seems to be very well documented. The GH repository doesn't have as many followers as Atmosphere though. From what I know it doesn't support as many containers as Atmosphere.

Both integrate with Google Guice and other common requirements.

You can also find an old article on this question here, but both frameworks evolved a lot since then:

http://www.ibm.com/developerworks/library/wa-reverseajax4/

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