Forums Register Login

Sockets vs. RMI

+Pie Number of slices to send: Send
Hi,

Can somebody please post a link to a tutorial that deeply discusses the differences between Sockets and RMI, the advantages and disadvantages of each, why one must be used instead of the another ? And other important issues you think that matter.

Or if there's no link, can you please post them here ?

Thanks in advance ...
+Pie Number of slices to send: Send
I don't think there are many cases where one must be used over the other. RMI is built on top of sockets, so it operates on a higher level. It allows you to deal with Java objects and method invocations, instead of having to send bytes, like you would do with sockets. RMI is a Java-only technology, though (it's using object serialization), so you can connect only to other JVMs, not processes written in other languages. Its convenience also comes at the price of a certain overhead (although not a huge one), so for ultimate performance sockets may be better.
[ January 23, 2008: Message edited by: Ulf Dittmer ]
+Pie Number of slices to send: Send
Thank you for your reply
She'll be back. I'm just gonna wait here. With 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 3206 times.
Similar Threads
Port Puzzle ?
Question about scea part II
JSP taglib Paggination
Did SCJA yesterday
"Socket is closed"... why?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:47:40.