This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am trying to send the object from one web application to another web application. Current both applications are in same server, future might be in different servers. Data is more than 5000+ fields. It should work with out effecting performance.
1. Object serialization This would require that the object and all "fields" represent Serializable objects or primitives - AND - that both web applications have identical code for the class. Advantage, easy to program, see java.io.ObjectOutputStream.
2. Output as an XML document containing everything needed to rebuild the object. Disadvantage - tedious to program, slower than 1; Advantage - intermediate XML can be read and verified as text.
Joined: Feb 23, 2006
Thank you for your time. do you have any sample code ? Else please could you tell me few steps how to proceed.
I told you data is huge..more thank 5000+ rows will populate..
Author and all-around good cowpoke
Joined: Mar 22, 2000
do you have any sample code ?
I can't imagine that anybody's sample code would exactly cover your problem, you are going to have to do some research. I suggest it will be simpler to start with object serialization.
I just did a google search for "java object serialization tutorial" and found plenty of material.