This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 32481

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

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]
Have you checked out Aspose?
subject: significance of file - application.xml
It's not a secret anymore!