• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sockets vs RMI

 
Mathew Ung
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Do most commercially written applications use sockets rather than RMI ?
RMI seems a lot easier to use, why would one use sockets instead of RMI ?

thanks in advance,

Matt
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RMI is a Java-only technology. If you want to communicate with something written in a different language, you can't use RMI.

You also need to keep the stubs/skeletons on both sides in sync, which is not possible in all usage scenarios you may want to cover.
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct me if I'm mistaken, isn't RMI-IIOP suppose to help bridging with non-Java systems?

I'd say to use sockets or RMI depends on a lot of factors such as requirements from clients (or your boss), the time-frame allocated, which technology you're more familiar & capable with, whether you need to have so much control at the network level or your focus is at the application rather than the network.
 
Tony Morris
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chengwei Lee:
Correct me if I'm mistaken, isn't RMI-IIOP suppose to help bridging with non-Java systems?


You're not mistaken - a more accurate statement might be "RMI-JRMP is Java-only".
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IMHO, unless you're dealing with the network layer, using RMI-JRMP for your application should suffice, and RMI-IIOP to inter-operate with non-Java applications, if necessary.
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's move this on over to Distributed Computing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!