Garg said:
Hi,
Thanks for your reply.
I think i didn't explain properly.
ok .. let me give an example .. whenever i start tomcat server i find
that tomcat5.exe start running in my system. So when i hit
http://localhost:8080/
i assume that tomcat5.exe takes this request and start processing. Now
what I want to understand that once tomcat5.exe gets that request then
what the path tomcat5.exe follows to process the request and what all
process or engines (my terminology is wrong) are involved in this.
That is a good questions. I think the first thing you need to ask is
which applications are installed on that Tomcat instance, and what do
their config files say they will do?
Since you don't specify a web app, Tomcat goes to .../webapps/ROOT,
looks at that and does....? Yes I'm being lazy, but that should get you
started...
Actually, I think most webapps would be already compiled and loaded into
memory, but lets assume they aren't. So I guess one of the first things
it does is look for a default page, which might be a JSP, and then
compile that before serving it up. If the default page is just a plain
ol' HTML. Hmm, don't forget about any pre-load commands ... then there
are listeners to consider ... it may or may not make a request or
response object if it's being lazy ... owie...