java glassfish v3 与 tomcat 7
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3557679/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
glassfish v3 vs tomcat 7
提问by Attila Nyers
Which one do you recommend for web and why?
您推荐哪一种用于网络,为什么?
回答by BalusC
I don't recommend any particular one. If you want just JSP/Servlet support, both suffices. If you want more than that (e.g. anythingprovided by the Java EE APIwhich is much morethan alone JSP/Servlet), then Tomcat simply don't suffice without manually adding a bunch of components on top of that to comply the complete Java EE API like JBoss ASis doing.
我不推荐任何特定的。如果您只需要 JSP/Servlet 支持,那么两者就足够了。如果你想更重要的是(例如任何由提供的Java EE的API是更比单独使用JSP / Servlet的),则在Tomcat根本就不够,而无需手动加入一些成分对最重要的是遵守了完整的Java EE像JBoss AS这样的API正在做。
In (Eclipse) development terms, Tomcat is a quick starter and restarter, takes about 3 seconds. Glassfish is a slow starter, takes 5~10 seconds for a simple webapp, but it is an extremely fast hotdeployer (by this Glassfish Eclipse plugin). All happens in a subsecond while Tomcat usually takes 3 seconds for this (yes, Tomcat is then basically restarting itself).
在(Eclipse)开发术语中,Tomcat 是一个快速启动器和重启器,大约需要 3 秒。Glassfish 是一个缓慢的启动器,一个简单的 web 应用程序需要 5 到 10 秒,但它是一个非常快的热部署器(通过这个 Glassfish Eclipse 插件)。一切都在亚秒内发生,而 Tomcat 通常需要 3 秒(是的,然后 Tomcat 基本上会重新启动自己)。

