• Post Reply Bookmark Topic Watch Topic
  • New Topic

XML ABD EJB  RSS feed

 
Meghana Garise
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Can anyone please tell me why we use XML files in EJBs?If it is to describe the deployment descriptors, isnt there any other way that we could do it?Please help!
Thanks!!
Meghana
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's wrong with XML? Unlike binary representations, you don't get clobbered when you switch hardware, OS's, compiler brands, compiler versions, server versions, etc., etc. etc. You don't need special tools - just a text editor, though there are both generic and special-purpose XML editors available.
Actually, the original deployment descriptor format *WASN'T* XML. Sun switched over from a binary format when they released the spec for EJB Version 1.1
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The original poster is probably wondering why couldn't one use something like a properties file (a type of Dictionary with name/value pairs) I guess...
Well, for very simple deployments I would agree. But as it happens, XML offers an invaluable method for this type of application, with its validating parsers (given a DTD).
Deploying significant web apps is no longer a trivial matter achievable by a file that only has name/value pairs.
XML was the right choice.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!