permaculture playing cards*
The moose likes Distributed Java and the fly likes Pass Object from One application to another application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Pass Object from One application to another application" Watch "Pass Object from One application to another application" New topic
Author

Pass Object from One application to another application

Bindu Sanju
Greenhorn

Joined: Feb 23, 2006
Posts: 16
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

Joined: Mar 22, 2000
Posts: 12760
    
    5
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

Joined: Feb 23, 2006
Posts: 16
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

Joined: Mar 22, 2000
Posts: 12760
    
    5
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pass Object from One application to another application
 
Similar Threads
What is a Session's scope?
Passing variables from class to class (SOLVED)
Passing Request
Scope differences
Jsp implicit variable