达到某个特定的用户数量(comet)时,您必须付费吗?是
正确的吗?
不,GlassFish没有这种限制(您在哪里听到的?)。你如果想通过订阅官方支持只需要支付。
如果不是,那么那里有哪些免费的彗星服务器支持长时间轮询和
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, 这是一种
适用于所有人的便携式AjaxPush / Comet框架(不了解此框架,
只想提及它)。引用其网站:
Atmosphere是一个基于POJO的框架,使用控制反转(IoC)
将推/彗星推向大众!最后,一个可以在任何
基于Java的Web服务器上运行的框架,包括Google App Engine,Tomcat,Jetty,
GlassFish,Weblogic,Grizzly,JBossWeb和JBoss,Resin等,而无需
等待Servlet 3.0异步支持或无需了解
Comet支持如何被所有这些Container实施。
但是,我还是要使用GlassFish v3 / Grizzly的方式(让Atmosphere
变得成熟一些)。



