Difference between web-server and servlet container

后端 未结 3 731
天命终不由人
天命终不由人 2021-02-02 03:18

What is the difference between \"A Web Server\" and \"A Servlet Container\"?
In general are all Web Servers Servlet(Web) Containers too or vice versa?

I have been us

3条回答
  •  隐瞒了意图╮
    2021-02-02 03:27

    A Servlet Container is a Web Server that must be able to run Java Servlets.

    Web Server, on the other hand, is a broader term including all software running and communicating through HTTP protocol.

    Under these definitions:

    1. All Servlet Containers are Web Servers
    2. Not all Web Servers are Servlet Containers. I.E. Apache HTTP Server can not run Java Servlet directly.

提交回复
热议问题