tomcat或glassfish作为慧星服务器? [英] tomcat or glassfish as comet server?

查看:106
本文介绍了tomcat或glassfish作为慧星服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

他们都是免费的,但我认为玻璃鱼有一些限制,或者当你达到一定数量的用户(彗星),那么你必须支付?这是正确的吗?如果真的,你可以使用Tomcat作为彗星服务器吗?

如果不是,那么哪些免费的彗星服务器支持长轮询和iframe?

解决方案


认为玻璃鱼有一些限制,或者当你达到一定数量的用户(彗星),那么你必须支付?是否正确?

不,GlassFish没有这种限制(您从哪里听到?)。如果您希望通过订阅获得官方支持,您只需付费即可。


如果没有,那么哪些免费慧星服务器支持长轮询iframe?


Jetty 支持彗星式编程。 Tomcat的 Comet Implementation (但我发现更多抱怨,而不是Google的正面反馈)。您也可以嵌入 StreamHub 。但我不确定他们支持的是什么。



就我个人而言,我会使用GlassFish v3 / Grizzly。主要原因是你会发现很多示例,教程等(不提你已经下载了GlassFish和NetBeans)。例如这一个 a>。

更新:在搜寻这个主题时,我发现了,一个适合每个人的可移植的AjaxPush / Comet框架(并不知道这个框架并且想提及它)。引用其网站:


Atmosphere是一个基于POJO的框架,使用Inversion of Control(IoC)将推/彗星带入群众!最后,这个框架可以在任何基于Java的Web服务器上运行,包括Google App Engine,Tomcat,Jetty,GlassFish,Weblogic,Grizzly,JBossWeb和JBoss,Resin等等,而无需等待Servlet 3.0异步支持或无需了解Comet支持如何由所有容器实现不同。


但是,我仍然使用GlassFish v3 / Grizzly方式让大气成熟一点)。


they are both free but i think glassfish has some limitation or when you reach up to a certain nr of users (comet) then you have to pay? is that correct?

if true, could you use tomcat as a comet server?

if not, then which free comet servers are there supporting long polling and iframe?

解决方案

They are both free but i think glassfish has some limitation or when you reach up to a certain nr of users (comet) then you have to pay? is that correct?

No, GlassFish doesn't have such limitation (where did you hear that?). You only have to pay if you want official support through a subscription.

if not, then which free comet servers are there supporting long polling and iframe?

Jetty has support for comet-style programming. Tomcat has a Comet Implementation (but I find more complains than positive feedback about it on Google). You could also embed StreamHub. But I'm not sure about what they support exactly.

Personally, I'd go with GlassFish v3 / Grizzly. The main reason is that you'll find lots of samples, tutorials, etc (not mentioning that you already have downloaded GlassFish and NetBeans). For example this one.

UPDATE: While googling a bit more on this topic, I discovered Atmosphere, a portable AjaxPush/Comet Framework for everyone (wasn't aware of this framework and wanted to mention it). Quoting its website:

Atmosphere is a POJO based framework using Inversion of Control (IoC) to bring push/Comet to the masses! Finally a framework which can run on any Java based Web Server, including Google App Engine, Tomcat,Jetty, GlassFish,Weblogic, Grizzly, JBossWeb and JBoss,Resin, etc. without having to wait for Servlet 3.0 Async support or without the needs to learn how Comet support has been differently implemented by all those Containers.

But still, I'd go the GlassFish v3 / Grizzly way (and let Atmosphere mature a bit).

这篇关于tomcat或glassfish作为慧星服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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