High Quality
Open the downloaded document, and select print from the file menu (PDF reader required).
Java 2 Platform Enterprise Edition (J2EE) defines a group of Java-based code libraries (called API in the Java world) that are suited to creating web applications for the enterprise (i.e a large company). J2EE is design to cope with large complex configuration in large companies. J2EE is used in a distributed system environment where specific servers do specific tasks. There are many J2EE API's and here is a list of some key ones:
Servlets are portions of logic written in Java that have a defined form and which are invoked to dynamically generate content. A servlet has a defined lifecycle and were created by Sun microsystems due to the problems with CGI.
JSP is a technology to provide dynamic content, the programmer will insert code that can personalise and secure
a web page, the Java code will be executed on the server rather than the browser. JSP pages are compiled into
servlets which are then kept in memory or on the filesystem indefinitely, until either the memory is required
back or the server is restarted. This method increases response times as the document as already be parsed and
compiled, the result works like a CGI program. The difference between JSP and sevlets is that sevlets are held
within the private area of the server, while JSP are held within the public area. Jasper and Javac are the
compilers that convert JSP pages into servlets.
Files in this directory are private. A single file, web.xml called the deployment descriptor contains configuration options for the web application.
component.
Connectors connect the applications to client. Ther are a number of connectors, HTTP, SSL, JDBC, WARP, etc
Engine is a request-processing component that represents the Catalina servlet engine. By examining the HTTP
Listeners listen for significant events in the component they are configured in, for an example , a Javabean
could send an email when an event requiring administration is recorded. In other words when a particular event
occurs a certain action can be taken.
seperate log files.
Hosts minics the popular Apache virtual host functionality.
Context is the web application itself.
Using the above information and the diagram below you should have a understanding of the tomcat
Add a Comment