File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Need of an XML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Need of an XML" Watch "Need of an XML" New topic

Need of an XML

Senthil Kumar Sekar
Ranch Hand

Joined: Aug 08, 2010
Posts: 45

Hi All,
I came to know the purpose of XMLs in application (as in many frameworks)that is even if any changes happens to the xml, the application need not be redeployed.

I have a question,But if the XML is in the application(say ear), after changes, the application has to be rebuilt(new ear) and then reployed and then the server has to be restarted.rite? Iam not clear here.

Please let me know the purpose of an xml.


Senthil Kumar Sekar

joy b chakravarty
Ranch Hand

Joined: May 16, 2011
Posts: 62

Yes Xmls are definitely preferred for configuring applications rather than hard coding them into your code.

when you deploy an app (.war or .ear) the app server extracts the files, you may change these configuration XMLs (which are now extracted) and just restart the server (in some cases like spring webflow xmls you don't have to restart the server) for your changes to be picked up. This saves you from rebuilding and redeploying your app.

Cheers, Joy [SCJP 1.4, SCBCD 5.0]
get high on alcohol, algorithm or both
I agree. Here's the link:
subject: Need of an XML
It's not a secret anymore!