Results 1 to 2 of 2
- 03-14-2008, 03:20 PM #1Member
- Join Date
- Mar 2008
- Rep Power
Which Java-XML library or technology is best for my needs?
I am working on a desktop application which communicates with a server application over HTTP. On both the applications, Java object model is similar.
I want to use XML to transfer data between the 2 apps. Please tell me which JAVA-XML technology or libarary is best for my case. Since it is a desktop application, I am looking for some library with moderate footprint. Also it should be efficient as the amount of data contatined within a single object can be huge (due to big object model).
Someone suggested that we can also send serialized objects (Base64 encoded) on the wire and there is no need to use XML. Please suggest me how suitable this can be, if i dont use XML and send just a serialized object.
- 03-15-2008, 07:34 AM #2
Since you are working with huge amount of data over the network and concerned about the footprint i think SAX will be better. You can harness the benefit of partial data available to you if possible.
If there is no use of partial data. You can go for just Java Serialization based solution as well. a word of caution, what if you decided to upgrade your application and your clients are not upgraded. Class cast exceptions !!
You might account for the amount of data needed to be transfered between the server and client (and comparing those two solutions in terms of bandwidth) as well before deciding.
But whichever easier is always there !!dont worry newbie, we got you covered.
- By Heather in forum NetBeansReplies: 3Last Post: 09-07-2009, 01:28 PM
- By sureshjava in forum NetworkingReplies: 1Last Post: 01-29-2008, 05:53 AM
- By JavaBean in forum Java SoftwareReplies: 0Last Post: 10-20-2007, 05:56 PM
- By pegitha in forum Jobs OfferedReplies: 0Last Post: 05-18-2007, 08:40 PM
- By derrickD in forum Reviews / AdvertisingReplies: 0Last Post: 05-18-2007, 06:49 PM