Java GlassFish 与 tomcat
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23563340/
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 vs tomcat
提问by Bogdan
I would like to start using JEE6 in the next project that I have to work on at my job, but there is also a limitation (sort of): Tomcat 5.5 My question is, what improvements would bring GlassFish to the table (security/speed) vs the existing Tomcat(5.5) or an upgrade to the newer version 7?
我想在下一个我必须在工作中从事的项目中开始使用 JEE6,但也有一个限制(有点):Tomcat 5.5 我的问题是,哪些改进会将 GlassFish 带到桌面上(安全/速度) 与现有的 Tomcat(5.5) 还是升级到较新的版本 7?
采纳答案by Miljen Mikic
Q:My question is, what improvements would bring GlassFish to the table (security/speed) vs the existing Tomcat(5.5) or an upgrade to the newer version 7?
问:我的问题是,与现有的 Tomcat(5.5) 相比,GlassFish 有哪些改进(安全性/速度)或升级到更新的版本 7?
Tomcat 7 compared to Tomcat 5.5 supports newer version of JSR specifications. Therefore, if you wish to use for example Servlet 3.0 or Websockets, you don't have other choice but to upgrade the Tomcat version. See this linkfor the full list of Tomcat versions and supported specifications.
与 Tomcat 5.5 相比,Tomcat 7 支持更新版本的 JSR 规范。因此,如果您希望使用例如 Servlet 3.0 或 Websockets,您别无选择,只能升级 Tomcat 版本。有关Tomcat 版本和支持规范的完整列表,请参阅此链接。
However, Tomcat is not Java EE container, but only a servlet container. In other words, if you plan to use full Java EE (which includes security and many other things), you have to switch from Tomcat to some of full Java EE application servers. Glassfish is one of them, others are TomEE (similar to Tomcat, so perhaps a good starting point), WildFly, IBM Websphere, Oracle Weblogic etc. Unfortunately, Oracle recently decided to abandon commercial support for Glassfish, so maybe it would be wise choice to go with some other application server if you would like to use it commercially.
但是,Tomcat 不是 Java EE 容器,而只是一个 servlet 容器。换句话说,如果您计划使用完整的 Java EE(包括安全性和许多其他内容),您必须从 Tomcat 切换到一些完整的 Java EE 应用程序服务器。Glassfish 是其中之一,其他还有 TomEE(类似于 Tomcat,所以也许是一个很好的起点)、WildFly、IBM Websphere、Oracle Weblogic 等。不幸的是,Oracle 最近决定放弃对 Glassfish 的商业支持,所以也许这是一个明智的选择如果您想将其用于商业用途,请与其他应用程序服务器一起使用。
One way or another, move from Tomcat 5.5 because it is a quite old version of Tomcat.
以一种或另一种方式,从 Tomcat 5.5 迁移,因为它是 Tomcat 的一个相当老的版本。
See also:
也可以看看: