Forums Register Login

Serializable Question

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
She said she got a brazillian. I think owning people is wrong. That is how I learned ... tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 900 times.
Similar Threads
simple question
Array of Abstract Data Type
How to check the type of a variable
ClassLoading?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 07:30:19.