aspose file tools
The moose likes Servlets and the fly likes Invocation of Deployment Descriptor Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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: 56192
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12268
    
    1
If you really want to know, put an error in your web XML and look at the resulting stack trace.

Java Resources at www.wbrogden.com
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56192
    
  13

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Invocation of Deployment Descriptor
 
Similar Threads
about HttpSessionActivationListner
Question about Container Managed Relationship
weblogic 8.1 , Oracle sequence problem.
how to know the table name in CMP
make default.jsp as home page