Tim: Thanks for suggestion and url.
My problem is little complicated, Here's my problem:
3rd party class: (unserialized)
Subclass:
Another Class: Gateway.java
I want to capture all the properties of QueryResult class, plus additional properties for SubclassDAO set by Gateway.java and pass to the client.
I understand above readExtrenal() and writeExternal() method implementation is not correct here.
Few things I tried:
- Client is able to get projectName but not the queryResult object. out.writeObject(queryResult); in subclass implementation throws error compianing the queryResult is not serialized.
- I cannot do SubclassDAO dao = (SubClassDAO)result; in Gateway,
java as this throws me type cast exception.
Please suggest. How can I make this work by proper implementation of readExternal or writeExternal
How can I do that.