This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
You can plug in one of several servlet/jsp containers to run with Apache. Personally, I use Resin (www.caucho.com) which plugs in to Apache or runs standalone, and provides fast and effective servlet, JSP and XSLT support. Also consider Tomcat, JRun, and ServletExec, which all also plug in to Apache if required.
hi Frank, I do not understand the architecture of how the plugin and the apache server work. what i wanted to know is how to undertake configuring the plugin to work with the server. when a client of mine makes a request to the apache server how does it know how to pass the request to the tomcat server to process the request(of Jsp page) and get back the result. Basically i do not understand how both apache and tomcat are to be configured so as to work together to give me jsp pages. I hope i am clear. Regds. Rahul [This message has been edited by rahul_mkar (edited July 20, 2000).]
Joined: Jan 07, 1999
All decent modern web servers support some sort of "plugin" architecture. Apache can dynamically load "modules" which are specified in the httpd.conf file. The best way to understand this is to examine your httpd.conf, and also check out the installation instructions for any of the add-on servlet/JSP engines. In brief, though, you compile the "module" (if necessary), place it somewhere where Apache can see it, and add two sections to the httpd.conf. The first addition tells Apache how to load the module; the second addition configures it and tells Apache when to invoke it. Most servlet containers use a small module which can be configured to respond to either a URL-path (all URLs starting with "/servlets/" for example) or specific file patterns ("*.jsp" for example). When invoked, the module communicates with the servlet container, typically over a local socket connection, passes it the request details and gathers up the response generated which it then gives to Apache to send to the client. This may sound a bit complicated, but in practice it is very efficient, and allows Apache to do what it is best at (serving static files and directories) while the Servlet container just handles servlets, JSPs and other Java stuff.
Joined: Nov 22, 2008
hi Frank, Thanks will do the needful. Regds. Rahul