File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes web.xml and application.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "web.xml and application.xml" Watch "web.xml and application.xml" New topic

web.xml and application.xml

sha ram

Joined: Nov 25, 2003
Posts: 12
What is the difference between web.xml and application.xml file. What is the purpose of these files.
maneesh subherwal
Ranch Hand

Joined: Aug 26, 2002
Posts: 42
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...

Sun Certified Java Programmer 2 (1.4)<br />Sun Certified Web Component Developer
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
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 Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
I agree. Here's the link:
subject: web.xml and application.xml
It's not a secret anymore!