• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

why DD is in XML?

 
Greenhorn
Posts: 7
Hibernate Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
why deployment descriptor in xml file?
 
Sheriff
Posts: 67694
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Likes 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why not?
 
srinivas rach
Greenhorn
Posts: 7
Hibernate Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
need clarity....why xml only?why not others
 
Bear Bibeault
Sheriff
Posts: 67694
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Such as? You'll need to put a little more effort into your question.
 
srinivas rach
Greenhorn
Posts: 7
Hibernate Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks
 
Bear Bibeault
Sheriff
Posts: 67694
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For example: what other formats would you expect, and why?
 
Marshal
Posts: 27531
88
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The answer is the same as the answer to all the other "why is it like that" questions I see around here: it's that way because the designers decided to do it that way.

Now perhaps you meant to ask why the designers decided to use XML. Or perhaps you meant to ask why XML might be a better choice than some other format. But those are very different questions and we shouldn't be made to guess what you meant by your question. So... if you have a specific question, please ask it.
 
srinivas rach
Greenhorn
Posts: 7
Hibernate Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you are right paul....thanks
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Years ago when servlets first appeared I worked with a pioneering commercial version.

It used properties files to define parameters to the container - what a confusing mess.

Because of the limited ability of the property file concept of name/value pairs to communicate structure, we ended up with multiple files having confusing names containing properties with confusing names. Switching to web.xml was a big improvement.

Bill
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Comparing XML to *.properties files:

In my very first J2EE project, back in 2001, we used BEA WebLogic version 5.1. You had to configure it in one giant *.properties file. That was a big mess. In WebLogic 6.0, the configuration was done in XML, which was much more clear.

A *.properties file is just a flat list of key-value pairs. XML has hierarchical tree structure, so that you can organise things in a much better way.
 
reply
    Bookmark Topic Watch Topic
  • New Topic