Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need of an XML

 
Senthil Kumar Sekar
Ranch Hand
Posts: 45
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks.

Regards
Senthil Kumar Sekar

 
joy b chakravarty
Ranch Hand
Posts: 62
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic