Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2003-11-25
6
Medium Priority
?
282 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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

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 …
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

604 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