rmi and soket programming
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Joey_Ooi
Posted On:   Wednesday, May 24, 2006 10:08 PM

what is difference between rmi and socket programming and what is advantages and is advantages and disadvantages of both. Can u please give the briefly explainantion.

Re: rmi and soket programming

Posted By:   Robert_Lybarger  
Posted On:   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).
About | Sitemap | Contact