File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invocation of Deployment Descriptor

 
priya subramanian
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13047
6
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, aren't you the sneaky one!
 
Babu Naresh
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic