Web Server,Web Container,Application Container的区别

本文介绍了Web服务器如Apache、Web容器如Tomcat以及应用服务器如WebSphere和WebLogic之间的区别。Web服务器主要处理HTTP请求并将结果返回给客户端;Web容器为Servlet和JSP提供运行环境;而应用服务器则提供了更为全面的功能,既能作为Web容器又能处理HTTP请求,还支持企业级应用的部署。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

转自:http://caohongxing7604.blog.163.com/blog/static/32016974200991412744265/

 

Web Server:Web server 是指能够接收,解析,处理HTTP请求,并将处理后的结果返回给合适的客户端(比如浏览器)的服务器。例如IHS(IBM HTTP Server)和Apache,IHS是建立在Apahce之上的由IBM添加更多功能后的服务器,都处理HTTP请求(正如IHS名字所显示的 http server)
Web Container:Web容器J2EE标准的实现,为serverlet和jsp提供运行环境。例如,当一个HTTP请求通过要访问一个web组件(通常是一个serverlet或者是jsp),通常是将这个请求转发给web container处理完毕后再返回到web server。Tomcat是一个轻量级的web container。
Application Server: 是一个完整的server,它提供整个业务模块 (EJBs,ADFs,etc)运行的环境。除了单独作为一个web container外,它还能处理HTTP请求(当然包括其它协议,比如tcp,消息队列等)。Websphere 和weblogic 都属于此类!

Web Server is a server capable of receiving HTTP requests, interpreting them, processing the corresponding HTTP Responses and sending them to the appropriate clients (Web Browsers). Example: Apache Web Server. Read more about Web Servers and their working>>


A Web Container is a J2EE compliant implementation which provides an environment for the Servlets and JSPs to run. Putting it differently we can say that a Web Container is combination of a Servlet Engine and a JSP Engine. If an HTTP Request refers to a Web Component (typically a Servlet or a JSP) then the request is forwarded to the Web Container and the result of the request is sent back to Web Server, which uses that result to prepare the HTTP Response for the particular HTTP Request. Example: Tomcat is a typical Web Container. A typical setup would be to have Apache HTTP Server as the Web Server and Tomcat as the Web Container.

 


An Application Server is a complete server, which provides an environment for running the business components (EJBs, ADF BCs, etc.) in addition to providing the capabilities of a Web Container as well as of a Web Server. Example: Bea WebLogic, IBM WebSphere, Oracle
Application Server, etc.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值