Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which technologies does Tomcat support?

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/Servlet container, but I see articles in web about "JSF and Tomcat", "Hibernate and Tomcat" and many more.

Can tomcat play with these technologies: EJB, JSF, JPA, Hibernate, Spring, etc..?

like image 783
mehdi shahdoost Avatar asked May 18 '10 12:05

mehdi shahdoost


People also ask

Does Tomcat support JPA?

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.

Does Tomcat support JSP?

Apache Tomcat 8.5. x supports the same Servlet, JSP, EL, and WebSocket Specification versions as Apache Tomcat 8.0. x. In addition to that, it also implements the JASPIC 1.1 specification.

What OS does Tomcat run on?

Tomcat is written in Java, which means you must have a modern Java runtime installed before you can build or test it. Read Appendix A to make sure you have Java installed properly. One of the benefits of open source projects is that programmers find and fix bugs and make improvements to the software.

Is Tomcat a web technology?

Apache Tomcat server: Apache Tomcat is a web container. It allows the users to run Servlet and JAVA Server Pages that are based on the web-applications.


1 Answers

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?
like image 178
BalusC Avatar answered Dec 16 '22 08:12

BalusC