Tomcat支持哪些技术? [英] Which technologies does Tomcat support?
问题描述
我阅读了很多关于它支持整个Java EE 6规范的GlassFish应用服务器。但Tomcat支持哪些?
I read a lot about GlassFish application server that it supports the whole Java EE 6 specification. But which does Tomcat support?
我知道Tomcat是一个JSP / Servlet容器,但我在网上看到有关JSF和Tomcat,Hibernate和Tomcat的文章还有更多。
I know that Tomcat is a JSP/Servlet container, but I see articles in web about "JSF and Tomcat", "Hibernate and Tomcat" and many more.
tomcat可以使用这些技术:EJB,JSF,JPA,Hibernate,Spring等。?
Can tomcat play with these technologies: EJB, JSF, JPA, Hibernate, Spring, etc..?
推荐答案
Tomcat作为一个准系统servletcontainer确实只提供 JSP , Servlet , EL 和 WS API开箱即用。但是,您只需提供 JSF , JSTL , CDI , JPA , Hibernate , Spring 等等你自己和 / WEB-INF / lib
文件夹中的JAR文件的Web应用程序以及一些必要时配置文件。
Tomcat as being a barebones servletcontainer provides indeed only JSP, Servlet, EL and WS APIs out the box. You can however just provide JSF, JSTL, CDI, JPA, Hibernate, Spring, etc yourself along with the web application in flavor of JAR file(s) in the /WEB-INF/lib
folder and some configuration files where necessary.
EJB 只是一个故事因为你不能只是添加一些JAR来实现它,但实际上是的,如果修改服务器核心,你也可以将一个EJB容器放在Tomcat之上。这也基本上是 TomEE 所做的。如果你的意图是去Java EE,你可以考虑一下。
EJB is only a story apart since you can't just add "some JARs" to get that to work, but in fact yes, you can put an EJB container on top of Tomcat too if you modify the server core. That's also basically what TomEE has done. You might as well consider it if your intent is to go Java EE.
- What exactly is Java EE?
这篇关于Tomcat支持哪些技术?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!