• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using RMI on same machine. Overkill?

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I plan to have two Java processes running on the same machine, and I need to have these two pass data between them. Is RMI the best solution for this, or is there a simpiler way? Perhaps, using sockets?
Thanks for any advice.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RMI uses sockets but it abstracts the socket logic so you don't have to worry about it. I would go with RMI. This has the added advantage of simplifying code changes if you ever decide to move one of the processes to a different server.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Sorry for the DaB username, I'll create a real one for my new posts.]
Anyway, thanks for the reply. I guess I thought RMI used magic instead of sockets to communicate between processes.
For inter-process communication, are sockets the only--or at least the most feasible--option?
Thanks.
Donald Brasek
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Absolutely. IP communication is always done through sockets.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!