Understanding of Tomcat server and Apache

Source: Internet
Author: User

Tomcat server is a free open-source Web application server. Because Tomcat is advanced in technology, stable and free in performance, it is favored by Java enthusiasts and recognized by some software developers as a popular Web application server.

I. Tomcat and Application Server

So far, tomcat has been regarded as the executor of Servlet/jsp APIs, also known as servlet containers. However, not only does Tomcat provide this, but it also provides the implementation mechanism of JNDI and JMX APIs. However, Tomcat is still not an application server because it does not support most J2EE APIs.

Interestingly, many application servers usually use Tomcat as their Servlet and jsp api containers. Tomcat allows developers to embed Tomcat into their applications by adding a line of acknowledgment. Unfortunately, many commercial application servers do not comply with this rule.

For developers, selecting Tomcat is an excellent solution to generate Java Web applications by using Servlet, JSP, JNDI, and JMX technologies; however, to find other J2EE APIs, finding an application server or using Tomcat as an aid to the Application Server is a good solution; the third method is to find independent J2EE API implementation and then combine them with Tomcat. Although integration brings about problems, this method is the most effective ..

Ii. Tomcat and Web Server
Tomcat is a container that supports Servlet and JSP running. Servlet and JSP can generate dynamic web content based on real-time needs. For Web servers, Apache only supports static Web pages, but does not support dynamic web pages. Tomcat can serve dynamic web pages and support static Web pages. Although it does not have a common web server that is fast and features less abundant than the web server, Tomcat gradually supports constant expansion of static content. Most Web servers use underlying languages such as C and take advantage of the features of the corresponding platform. Therefore, the Tomcat execution speed written in pure Java cannot be compared with those of them.

Generally, a large site combines Tomcat with Apache. Apache is responsible for accepting all HTTP requests from the client, and then forwards Servlets and JSP requests to Tomcat for processing. After Tomcat completes processing, it returns the response to Apache, and finally Apache returns the response to the client.

 

I feel that the Apache server is a professional server for parsing static Web pages.

We have a built-in server in tomcat to access Apache! But the speed still does not work @@

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.