• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rmi registry and server

 
david hu
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends,
Should I place rmi registry and server on the same machine or different machine for the exam?
Thanks a lot!
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11865
194
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,
The rmiregistry provided by Sun does not allow remote server applications - they must be on the same machine.
Regards, Andrew
 
Martin Rea
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Hope I can drop in on this discussion with a new question relating to this (thought it would be better than to start a new discussion thread)
Assuming the following:
  • I start server (inlcuding rmiregistry) on a machine
  • The client starts and connects to the server from a different machine


  • I let the client be able to give port number and server IP (or hostname)in order to connect to server.
    Is it ok to assume that the server is always started on
    localhost/QUOTE]?
    I mean, is there any need for starting the server to use an IP or hostname?
     
    Andrew Monkhouse
    author and jackaroo
    Marshal Commander
    Pie
    Posts: 11865
    194
    C++ Firefox Browser IntelliJ IDE Java Mac Oracle
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Martin,
    The only potential issue is one of portability. As I mentioned, Sun's rmiregistry does not allow your server to be on a different computer than the registry. However a registry provided by some other supplier may allow it.
    All of which is a bit academic though - nearly everyone doing this assignment starts the rmiregistry from within the server application itself, so therefore the server is guaranteed to be on the same computer as the registry.
    Regards, Andrew
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic