Tomcat 支持哪些技术? [英] Which technologies does Tomcat support?

查看:29
本文介绍了Tomcat 支持哪些技术?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读了很多关于 GlassFish 应用程序服务器的文章,认为它支持整个 Java EE 6 规范.但是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 确实只提供 JSPServletELWS API 开箱即用.但是,您可以只提供 JSFJSTLCDIJPA休眠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";让它工作,但事实上,如果你修改服务器核心,你也可以在 Tomcat 之上放置一个 EJB 容器.这基本上也是 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.

这篇关于Tomcat 支持哪些技术?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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