When is the deployment descriptor configurations are loaded in a container. In other words, who is invoking the
Deployment descriptor. Which is the class that reads the xml and continues the dispatch of request based on the configuration.
No such class is specified in the specification, so each container will have its own internal classes to handle this sort of thing.
This sort of knowledge is not necessary to know to write servlets and web applications. If you're just curious abut how containers are written, then grab the source code to one of the free ones and have a look.
If I understand your question properly,
When the web app is deployed, its the responsibility of the container to read web.xml, parse it, and load the classes(servlets) in to the memory.
At this step, classes are instantiated and were ready to serve requests.
Joined: Nov 03, 2012
Thank you all for replying.
Yes Babu, I was asking for the same information. But I thought of knowing in detail about the class and method of the container where the exact parsing is done and how the container
interprets the XML. But I understand that this level of information is more than that is needed for coding.