简体   繁体   English

tomcat还是glassfish作为彗星服务器?

[英]tomcat or glassfish as comet server?

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? 它们都是免费的,但是我认为glassfish有一定的局限性,或者当您达到某个特定用户数(彗星)时,您必须付费吗? is that correct? 那是对的吗?

if true, could you use tomcat as a comet server? 如果为true,您可以将tomcat用作彗星服务器吗?

if not, then which free comet servers are there supporting long polling and iframe? 如果不是,那么那里有哪些免费的彗星服务器支持长时间轮询和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? 它们都是免费的,但我认为glassfish有一定的局限性,或者当您达到某个特定的用户数量(彗星)时,您必须付费吗? is that correct? 那是对的吗?

No, GlassFish doesn't have such limitation (where did you hear that?). 不,GlassFish没有这种限制(您在哪里听到的?)。 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? 如果不是,那么那里有哪些免费的彗星服务器支持长时间轮询和iframe?

Jetty has support for comet-style programming. Jetty支持彗星风格的编程。 Tomcat has a Comet Implementation (but I find more complains than positive feedback about it on Google). Tomcat有一个Comet实现 (但我发现抱怨多于在Google上获得的积极反馈)。 You could also embed StreamHub . 您也可以嵌入StreamHub But I'm not sure about what they support exactly. 但是我不确定他们到底支持什么。

Personally, I'd go with GlassFish v3 / Grizzly. 就个人而言,我会选择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). 主要原因是您会找到许多示例,教程等(更不用说您已经下载了GlassFish和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). 更新:在对该主题进行更多搜索时,我发现了Atmosphere ,这是一种适用于所有人的便携式AjaxPush / Comet框架 (不了解此框架,只想提一下)。 Quoting its website: 引用其网站:

Atmosphere is a POJO based framework using Inversion of Control (IoC) to bring push/Comet to the masses! Atmosphere是一个基于POJO的框架,使用控制反转(IoC)将推/彗星推向大众! 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. 最后,一个可以在任何基于Java的Web服务器上运行的框架,包括Google App Engine,Tomcat,Jetty,GlassFish,Weblogic,Grizzly,JBossWeb和JBoss,Resin等,而无需等待Servlet 3.0异步支持或不需要了解Comet支持如何被所有这些Container实施。

But still, I'd go the GlassFish v3 / Grizzly way (and let Atmosphere mature a bit). 但是,我还是要使用GlassFish v3 / Grizzly的方式(让Atmosphere变得成熟一些)。

Have a look at Jetty. 看看码头。 Free to use and has a lot of Comet support. 免费使用,并且有很多Comet支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM