Apache-Tomcat Examples
2.1 Apache-Tomcat Basic Example
APACHE-TOMCAT
WHAT IS APACHE TOMCAT?
Apache Tomcat is an open source web -container developed by the
Apache software foundation. Apache tomcat is a container which implement java servlets and java server pages (JSP). Tomcat is plateform
independent it can fitted in any operating system from window to the Linux. Tomcat compiler compile the servlets to the java
server pages (JSP). Apache- tomcat is a mostly used web application server.
Apache -tomcat provide a java virtual machine and associated elements to
give a complete Java run time environment .It will also provide a web server
software to make that environment accessible on the particular web.
FEATURES OF APACHE-TOMCAT
1.Implement servlets and JSP:-The main feature of apache
-tomcat is that it implements the servlets and java server pages.
2.Improved performance and Scalability:- Another
important feature of apache tomcat is that it improved the performance and
scalability of web by reducing the garbage collections.
3.Faster JSP parsing:- Apache -tomcat server did faster
parsing of JSP other than any parser.
VERSIONS OF APACHE -TOMCAT
Initial release tomcat was 3.0.x it support servlet
2.2 and JSP 1.1 specification.
Current versions of Apache tomcat in use are: Tomcat version 4
support the servlet 2.3 and JSP 1.2Tomcat version 5
support the servlet 2.4 and JSP 2.0 Current stable version is 6.0.30
ARCHITECTURE OF APACHE TOMCAT
Catalina ,Coyote and Jasper are the three component of tomcat
architecture.
Catalina:-It is a Tomcat's servlet container.
which is implement the Sun Microsystems's servlets and JSP.
Coyote :-It is the HTTP connector of Tomcat for the web
server or application container. Coyote listen the incoming connection on TCP
port on the server send it to the Tomcat engine for the processing and than
send back the response.
Jasper:-Jasper is the Tomcat engine. which implement the
servlet and JSP specifications. Jasper parses JSP files to compile them into
Java code as servlets (that can be handled by Catalina). At runtime, Jasper
detects changes to JSP files and recompile them.
|