Forums Register Login

Serialization with RMI

+Pie Number of slices to send: Send
I need to send an object between a client and server using RMI. As far as I understand I need to implement the Serializable interface in the class that I want to send objects of in order to send them as a byte stream.
Can I then just pass the object in a method call as normal and let the RMI do the work required at both ends or do I have to carry out some form of manual Serialization at the sender and Deserialization at the receiver?
+Pie Number of slices to send: Send
If you use RMI, you simply invoke the remote method with an instance of your Serializable object. That's the beauty of it. Check out the Java Tutorial: RMI for examples.
You will always be treated with dignity. Now, strip naked, get on the probulator and hold this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 692 times.
Similar Threads
ask for help. a topic about RMI
Serialization
Object Serialization!
About Serialization
what's the practical use of Serialization?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 02:00:40.