• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

Serializable Question

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello.

If I have a graph of objects that are being called, say for instance the following:


Will the class (Thingy) have to be serialized as well?

Curious, since this would mean for a large application, all objects
would have to be serialized?
Is there any patterns that address this?
Any solutions ?
Thanks

Zak
 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, coz you are not returning the instance of Thingy class back to the client. Also, the business operation data is not passed by value to the client but the output of the business operation
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nischal is right... also, your Dodad reference doesn't have to be Serializable or Remote either. Your client gets a stub to whatever Remote object has remoteMethod(). When remoteMethod() on the stub is called, the stub calls the *real* remoteMethod() on your Remote class running on the server. Objects that are reference *inside* remoteMethod() don't have to be Serializable or Remote... only objects that are sent *into* the method as parameters, or that are sent *out of* the method as return values.
 
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic