What is the difference between web.xml and application.xml file. What is the purpose of these files.
Joined: Aug 26, 2002
application.xml specifies war files and other application level contexts. An application is nothing but a bunch of war files. For example an enterprise application project would specify the ejb war and the web project war file. the web.xml holds a lot more detailed information for the war file. It includes the web app name, servlet mapping, security roles, application context values, and lots of other information. I hope this helps... Maneesh
Sun Certified Java Programmer 2 (1.4)<br />Sun Certified Web Component Developer
Joined: Aug 10, 2001
Actually a "WAR file" stands for a "Web Archive" file and is specialized form of JAR file that contains a web.xml file. Likewise an EJB JAR file is a specialized form of EJB file that contains an EJB-JAR.xml file. There are also RAR files that contain JCA connectors as well. Finally, Application Client JAR files contain an "application-client.xml" file. All of these different component file types may be put together into an EAR file. Kyle