Setting the context-root using application.XML

The application.xml file is found in the META-INF subdirectory of the application. This is a deployment descriptor for enterprise applications. A sample snippet of code where the <context-root> is found is given below.


_______________________________________________



<module>
...
...
<web>
<web-uri> resumeManager.war </web-uri>
<context-root> eResume </context-root>
</web>
</module>

The <context-root> is the child of the <web> tag which is used to define an application module in the server. This element has the <web-uri> and <context-root> as the child elements. The tag <web-uri> gives the information on the location of the web application module. This is given by the path of the .war file. As the name specifies the element <context-root> gives the context root for the application.

Lots of samples on the usage of the application.xml file and the context root element is given in the web. If you have access to this file in your server, just check the elements and the values of the application.xml and you will find how to use the different elements in this XML document.




_______________________________________________

FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________



 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!

Visit XML Training Material Guide Homepage

 

 

Copyright - © 2004 - 2017 - All Rights Reserved.