• Post Reply Bookmark Topic Watch Topic
  • New Topic

Comparision - RMI, Sockets.  RSS feed

 
Vinod Chandana
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I found RMI easy to implement. It is said to have better garbage collection of dead client connections. I've heard that the rmi server has a better implementation of multithreading. I tried to avoid sockets, becos I dint want to use busy looping. Are there any other performance reasons?
Thnks,
Vinod.
 
chandana sapparapu
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vinod,
I too feel that doing a busy wait isn't the right thing to do(not to mention the ease of coding in RMI). For that reason, I have implemented my academic project in RMI instead of socket programming. But I am struggling with a few bugs, I have to look into it.
Please let me know if you have succeeded in implementing a truly distributed sytem(that is every computer is both a client and a server at the same time).
Regards,
chandana
 
Vinod Chandana
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Reddy,
Do let me know what problems u were having. I was able to run rmi previously. I'd suggest u to have a look at the following url.
http://developer.java.sun.com/developer/onlineTraining/rmi/RMI.html
Regards,
Vinod.
[ October 26, 2003: Message edited by: Vinod Chandana ]
 
Vinod John
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vinod, RMI implementation is more like a wrapper over a Socket, which more added features like distributed garbage collection, automatic Serialization/de serialization, http tunneling etc. But the issue with RMI is it is specific to Java application and if your application involves a scenario where the client has to call back the server(with the client being outside the fire wall) then you may run into real problems. Though this scenario is achievable but the hacks are thought to be not too efficient.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!