File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do we talk about class for a return value or a parameter?

 
Piyush Jain
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HFEJB page 77.

"When you pass a serialized object as an argument or return value, you better make sure the class file for the type you are passing is available on the other side. If the class isn't there, the object will never deserialize"

"That includes the stub classes. if the client doesn't have the class for the stub object, its hopeless.."

I didn't quite get what the "class file for the type means. I really don't have clue what they are saying here or i am misinterpreting something.

Please clarify.

Thanks.
[ September 15, 2004: Message edited by: piyush jain ]
 
Shreyas Reddy
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The explanation from Kathy might help at this link
http://www.coderanch.com/t/159878/java-EJB-SCBCD/certification/stubs-client
 
Piyush Jain
Ranch Hand
Posts: 60
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Shreyas.

When you pass a serialized object as an argument or return value, you better make sure the class file for the type you are passing is available on the other side. If the class isn't there, the object will never deserialize


I understand what Kathy said about the Stub objects and classes.

But what does
when you pass a serialized object as an argument or return value make sure the class file for the type you are passing
mean? how can we have a class for the return value? is it referring the client class thats passing the parameters? or in other case the bean class which has the business methods and returning values?

can somebody clarify with an example?

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic