Solved

Problem in deserializing an Object over URLConnection , when Object is different on receiving side

Posted on 2003-11-25
6
275 Views
Last Modified: 2013-12-10
Hi,
        I have application W deployed on WebLogic. This app W has one Java object JO which is serializable. I have application A on ATG. app W and app A are same except java object JO is not serializable on ATG and is having less attributes than JO on Weblogic.
        I am sending JO from app W to app A by HttpURLConnection. But when I receive it in app A( from input stream of the Connection) and try to cast the object received to JO on ATG, it throws me error, which is normal, as the classes are not same.
        Is there any way by which I can send object to ATG without modifying the class on ATG. I can create new classes on WebLogic, but not on ATG.

Any suggestion is most Welcome.
Thanks in Advance
Animesh
0
Comment
Question by:animExp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 9

Expert Comment

by:vzilka
ID: 9823088
What if you try to create the same object in W (same attributes), but with the Serializable interface, and send it? Does it work?
0
 
LVL 4

Accepted Solution

by:
boxy73 earned 500 total points
ID: 9823120
Try creating a class as in Weblogic as it exists in ATG and then create a new one, serializable if you need it, that extends that first class, and send it using HttpURLConnection.

If the class in weblogic has less attributes than in TAG, create it with those att in W too, although you're not going to use them.

0
 
LVL 9

Expert Comment

by:vzilka
ID: 11074721
boxy73 answer is both complete and accurate.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Exception thrown while starting tomcat on Mac OS 7 97
How to get rid of Java update popups 6 225
Should we upgrade from Tomcat 7 to Tomcat 8 ? 5 821
starOut java challenge 95 195
-Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question