aspose file tools
The moose likes Servlets and the fly likes significance of file - application.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "significance of file - application.xml" Watch "significance of file - application.xml" New topic

significance of file - application.xml

pendse anagha
Ranch Hand

Joined: Mar 09, 2005
Posts: 44
I am a bit confused about this file

what is the purpose of this file

From what I have read / googled - looks like
I can define my - java / ejb / war file

What is the purpose ?
Does this mean that an application will not run if I do not have this file ?

Could someone please give some guidance ?

Regards ,
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 31571

When you have a web application, you create a war file and specify information about it in a web.xml file. When you have a J2EE app (with EJBs), you create an ear file and specify information about it in an application.xml file.

Yes, it is required for an EAR file.
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3739

It defines properties on the EAR-level only, and allows you to set context such as "I want this WAR to be reachable at this URL starting address". It does not contain any information for anything inside a WAR or EJB.

[OCA 8 Book] [Blog]
wood burning stoves
subject: significance of file - application.xml