• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Pass Object from One application to another application

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
We don't have time for this. We've gotta save the moon! Or check this out:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic