Which technologies does Tomcat support?

前端 未结 5 1378
灰色年华
灰色年华 2020-12-03 04:18

I read a lot about GlassFish application server that it supports the whole Java EE 6 specification. But which does Tomcat support?

I know that Tomcat is a JSP/Servle

5条回答
  •  感动是毒
    2020-12-03 04:45

    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 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.

    See also:

    • What exactly is Java EE?

提交回复
热议问题