GeeCON Prague 2014*
The moose likes Servlets and the fly likes Invocation of Deployment Descriptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Invocation of Deployment Descriptor" Watch "Invocation of Deployment Descriptor" New topic
Author

Invocation of Deployment Descriptor

priya subramanian
Greenhorn

Joined: Nov 03, 2012
Posts: 2
Hi All,

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.

Thanks
Priya
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61298
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12791
    
    5
If you really want to know, put an error in your web XML and look at the resulting stack trace.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61298
    
  66

Oh, aren't you the sneaky one!
Babu Naresh
Greenhorn

Joined: Apr 26, 2010
Posts: 5
Hi Priya,

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.

Thanks,
Naresh


priya subramanian
Greenhorn

Joined: Nov 03, 2012
Posts: 2
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.


Thanks & Regards
Priya.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Invocation of Deployment Descriptor