Please tell me the Difference between web server, web container and application server.
相关问题
- How do I delay JMS Message sending?
- Something like EJB wiring in Spring for non EJB
- Web server farms with IIS ? Basic Infos [closed]
- Is JavaEE really portable?
- Using WebStorm with Parse.com
相关文章
- WebService 启动调试后,能成功调用函数,但断点进不去任何方法
- @Singleton @Startup @PostConstruct method guarante
- Is it possible to destroy a CDI scope?
- The JavaEE 8 Tutorial, deploy failed on hello1 pro
- Inject producer method that returns String CDI
- Why does Google Chrome NOT use cached pages when I
- What's the default scope for a bean created by
- Integrating Jetty with RESTEasy
Web container also known as a Servlet container is the component of a web server that interacts with Java servlets. A web container is responsible for managing the lifecycle of servlets, mapping a URL to a particular servlet and ensuring that the URL requester has the correct access rights.
The basic idea of Servlet container is using Java to dynamically generate the web page on the server side using Servlets and JSP. So servlet container is essentially a part of a web server that interacts with the servlets.
Source: http://www.service-architecture.com/articles/application-servers/j2ee_web_server_or_container.html
Web containers are responsible to provide the run time environment to web applications. It contains components that provide naming context and manages the life cycle of a web application. Web containers are a part of a web server and they generally processes the user request and send a static response.
Servlet containers are the one where JSP created components reside. They are basically responsible to provide dynamic content as per the user request. Basically, Web containers reply with a static content as per the user request, but Servlets can create the dynamic pages.
Web Server: It provides HTTP Request and HTTP response. It handles request from client only through HTTP protocol. It contains Web Container. Web Application mostly deployed on web Server. EX: Servlet JSP
Web Container: it maintains the life cycle for Servlet Object. Calls the service method for that servlet object. pass the HttpServletRequest and HttpServletResponse Object
Application Server: It holds big Enterprise application having big business logic. It is Heavy Weight or it holds Heavy weight Applications. Ex: EJB
Web Container + HTTP request handling = WebServer
Web Server + EJB + (Messaging + Transactions+ etc) = ApplicaitonServer