Re: rmi and soket programming
Wednesday, May 24, 2006 10:32 PM
Are you taking an exam right this minute, or something? Read up about these sorts of things at http://java.sun.com/tutorial or any other number of places. Condensed (therefore incomplete) version: Socket = your app talks to some service via TCP or UDP protocol; you know the service machine's address, port number. RMI = your app makes method calls on some object running in another VM on another system; you know a naming server address and a service name. Direct sockets are easier to get working, as you don't have the pain-in-the-ass issues of dealing with the _stub and _skel files and properly packing the client vs. server as per RMI. How RMI might be better I'll leave to the reader (or some other poster).