wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes How do we talk about class for a return value or a parameter? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "How do we talk about class for a return value or a parameter?" Watch "How do we talk about class for a return value or a parameter?" New topic
Author

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

Piyush Jain
Ranch Hand

Joined: Apr 25, 2003
Posts: 60
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

Joined: Oct 09, 2003
Posts: 49
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

Joined: Apr 25, 2003
Posts: 60
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How do we talk about class for a return value or a parameter?
 
Similar Threads
Why should remote method arguments/return types always be Serializable
Communication between a EJB and its container
packaging j2ee clients
RMI marshaling and unmarshaling
Mapping a Blob to a byte[] in hibernate 3