wood burning stoves 2.0*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "significance of file - application.xml" Watch "significance of file - application.xml" New topic
Author

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 ,
-anagha
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

Anagha,
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: 3697
    
    5

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.


My Blog: Down Home Country Coding with Scott Selikoff
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: significance of file - application.xml
 
Similar Threads
sycmjit.dll
Signing JAR Files
what is purpose of login-config tag web.xml file?
EL "" will it be interpreted as zero ?
PrintWriter append