| This article may need to be rewritten entirely to comply with Wikipedia's quality standards. You can help. The discussion page may contain suggestions. (August 2009) |
mod_jk is the connector used to connect Tomcat servlet container with web servers such as Apache, Netscape, iPlanet, SunOne and even IIS using the AJP protocol.
JBoss Web and Tomcat 6 are now using the Apache Portable Runtime library to get increased speed and OpenSSL. They both also support URL Rewriting. The need for a separate Apache instance and the usage of mod_jk may well be reduced in the future. One can now aim for load balancing directly at the JSP/Servlet engine. This gives one less hop in serving up the request and a fast JSP/Servlet engine that supports some features of Apache.
JK is a project covering web-servers to Tomcat connectors, whereas mod_jk is the Apache module developed in JK.
How does JK work?
In a nutshell a web server is waiting for client HTTP requests. When these requests arrive the server does whatever is needed to serve the requests by providing the necessary content.
Adding a servlet container may somewhat change this behaviour. Now the web server needs also to perform the following:
- Load the servlet container adaptor library and initialise it (prior to serving requests).
- When a request arrives, it needs to check and see if a certain request belongs to a servlet, if so it needs to let the adaptor take the request and handle it.
The adaptor on the other hand needs to know what requests it is going to serve, usually based on some pattern in the request URL, and to where to direct these requests.
Things are even more complex when the user wants to set a configuration that uses virtual hosts, or when they want multiple developers to work on the same web server but on different servlet container JVMs.
External links
See also
| This computer network-related article is a stub. You can help Wikipedia by expanding it. |
This entry is from Wikipedia, the leading user-contributed encyclopedia. It may not have been reviewed by professional editors (see full disclaimer)




