This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pass Object from One application to another application

 
Bindu Sanju
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Please suggest some body how to work on this.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Bill
 
Bindu Sanju
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Bill,

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..

Regards,
Sanju
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Bill
It should work with out effecting performance.

This is NOT going to happen, no miracles.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic