为什么选择tomcat而不是Java EE兼容的应用服务器? [英] Why choose tomcat over a java EE compliant application server?

查看:502
本文介绍了为什么选择tomcat而不是Java EE兼容的应用服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Java EE应用程序服务器提供了tomcat的所有功能,那么为什么要使用tomcat(例如代替glassfish,因为它是官方的)?



特别是当Java需要EE功能,如JPA,JAX-RS,JSF,因此需要将更多库与应用程序打包在一起,而符合EE标准的应用程序服务器可以提供开箱即用的功能吗?

解决方案

我们想到的问题以及我们创建的完整理由 TomEE 是的,为什么人们必须选择?



整个Tomcat或JavaEE的东西已经累了。



< 10年后,它仍然出现,人们互相争论哪个更好,为什么。



以下是简短形式的数学:




  • 在Java EE 6中,我们(JCP)创建了Web配置文件,正式承认需要使用一组专注的技术来实现更小的运行时。



很好,我们已经到了中途,但人们仍在争论Tomcat JavaEE。解决方案很明确,Tomcat需要通过Java EE认证。创建Web配置文件是为了允许完全符合




  • 2011年,我们(Apache)开始做这项工作验证Apache Tomcat。认证达到并在JavaOne 2011上宣布为Apache TomEE。最终版本于4月公布。



太棒了,现在我们在那里。



新的现状




  • 有一个较轻的JavaEE版本

  • 有一个JavaEE认证Tomcat的版本



所有这些都发生在过去的两年里。情况发生了变化。



如果你想要 Tomcat和JavaEE ,你可以拥有它。


Java EE application servers provide all the features of tomcat, so why use tomcat (instead of glassfish for example as it is the official one)?

Especially when Java EE features are needed like JPA, JAX-RS, JSF, and therefore more libraries have to be packaged with the application, while a EE-compliant application server would have provided it out of the box?

解决方案

The question that was in our mind and the entire reason we created TomEE was, why should people have to choose?

The whole "Tomcat or JavaEE" thing is tired and old.

After 10 years it still comes up and people argue against each other as to which is better and why.

Here's the math in short form:

  • In Java EE 6, we (JCP) created the Web Profile to formally acknowledge the need for smaller runtimes with a focused set of technologies.

Great, we're half-way there, but people are still arguing "Tomcat or JavaEE". The solution was clear, Tomcat needed to be Java EE certified. The Web Profile was created to allow for exactly that.

  • In 2011 we (Apache) started doing the work to certify Apache Tomcat. Certification reached and announced at JavaOne 2011 as Apache TomEE. Final release announced in April.

Awesome, now we are there.

The new Status Quo

  • There is a lighter version of JavaEE
  • There is a JavaEE certified version of Tomcat

All this happened in the last 2 years. Things have changed.

If you want Tomcat and JavaEE, you can have it.

这篇关于为什么选择tomcat而不是Java EE兼容的应用服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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