This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

xml instead of jdbc ??  RSS feed

 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In many J2EE application when it is require to show mass data on client interface on the requset of client then many developer prefer to send those mass data in the form of xml file instead of using jdbc option .Can any one please explain it what is the advantage of using xml file instaed of jdbc option.Iam little bit confused about this logic.
Thanks & Regards
Bikash
[ September 28, 2003: Message edited by: Bikash Paul ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sometimes, it's easier to send data as XML between two separate applications because you don't need a common database. The XML file can still be searched. XML is especially useful if the two systems are separated by firewalls.
 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think u r not getting my point I want to know why many developer prefer xml file when it is require to send mass data from database to client interface on the request of client, instead of simple jdbc option.
Thanks & Regards
Bikash
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
by sending the data as ANYTHING except a JDBC connection you're guaranteeing the security of that connection and preventing open connections from flying around the world and not being closed.
Also, by providing as much abstraction as possible your application is not reliant on the details of the actual JDBC connection except in a single place (the beans where it belongs).
All other parts of the application should rely on those beans to retrieve data and write it back, passing them data in some form (either DTOs, XML, or whatever format you choose).
 
Bikash Paul
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Lot of thanks for ur reply.Thats what Iam exactly searching for.
Thanks
Bikash
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All other parts of the application should rely on those beans to retrieve data and write it back, passing them data in some form (either DTOs, XML, or whatever format you choose).

Why choose XML over value objects?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:
Why choose XML over value objects?

If the receiving end doesn't speak Java.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!