Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The explanation from Kathy might help at this link
https://coderanch.com/t/159878/java-EJB-SCBCD/certification/stubs-client
 
Piyush Jain
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic