Discussion Locked

RMI or Sockets

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi There,
currently i am developing a client/server application (is a stand alone client app. not through browser..suppose to be 2-tier but i am not sure). I am looking forward to learn a distribution programming skill, is socket programming easier or RMI easier ? or RMI is subset of socket ?
thanks

1 reply

by jay eckles

RMI stands for Remote Method Invocation and uses sockets as part of its communication protocol. Sockets for me were easier to learn; I found the Java RMI API cumbersome and disliked that RMI required the running of a "registry" in addition to the actual server-side application.

A book I found that does a great job of both explaining RMI and comparing its advantages and disadvantages to your own socket implementation was Java Distributed Computing by Jim Farley (published by O'Reilly). You might not have to buy it - I found a copy at my library.

Good luck.

Jay Eckles
www.jayeckles.com

This discussion is closed to new replies.