Ø
Apache Tomcat,
formerly Jakarta Tomcat, which most people just call "tomcat", is an
HTTP server for running Java applications. Apache tomcat is an open source web container.
Ø
Apache tomcat is a webserver and can easy to deploy our web application on server. Specially java
applications.
Ø
In the Java world, they decided to create small pieces of
code to serve application requests, without having to worry about how HTTP
requests/responses work.
Ø
The biggest advantage in a Java-centric
environment: It’s open source, lots
of people know how to work with it, and you can change something that you find
doesn't work for whatever reason. Other
advantages: It's smaller than some other Java-based solutions. If you’re
deploying Servlets, going lightweight and small is a good thing.
Ø
Tomcat uses several Java
EE specifications such as Java Servlet, (JSP), EL, and WebSocket, and
provides a “pure Java” HTTP web server environment for Java concept to run in.
Ø
There is a built in web container called Catalina in the tomcat bin
directory. It loads all http related
request and has privilege to instantiate the GET and POST method's object.
Ø
Request and Response flow
of Tomcat:
It receives a HTTP request
over a TCP connection. It parses it into a Request object, and calls
your Servlet. Your Servlet generates all the output in a Response object.
Tomcat sends this back as a HTTP response over that TCP connection.
Comments
Post a Comment