• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web.xml and application.xml

 
sha ram
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between web.xml and application.xml file. What is the purpose of these files.
 
maneesh subherwal
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic