File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 33130

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: 3753

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]
I agree. Here's the link:
subject: significance of file - application.xml
It's not a secret anymore!