T
T
Toast2015-07-04 21:59:27
Java
Toast, 2015-07-04 21:59:27

Java Servers vs Servlet/JSP Containers?

I read in the wiki article that there are Java servers, Servlet / JSP containers, EJB containers. I used to hear about Tomcat and Jetty, I thought these were servers, but no, containers ...

  • The question is theoretical - what is the difference between a server and a container ?
  • Practical - what to choose for store deployment (Spring MVC)?
  • When and why is it worth using Java server/container + Nginx (for statics and proxying to different servers)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
protven, 2015-07-05
@protven

The application server must comply with the JEE specification, and be able to run full-fledged JEE applications. That is, include a servlet container, an MQ server, an EJB container, JTA, and something else (see wiki). The reference implementation is Glassfish, a product of the former Sun, now Oracle. The most popular are Weblogic, IBM Webspehre, JBOSS. There is an open source implementation - TomEE. A servlet container is specifically designed to run Java web applications. The most commonly used is Apache Tomcat.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question