This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Similar Threads
difference in Local & Remote
Regarding iPlanet Deployment descriptors.
1.Migration from weblogic to websphere
Websphere deployment
Is there a way to create application (ear) project from maven to eclipse?