jQuery in Action, 3rd edition
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes rmi registry and server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "rmi registry and server" Watch "rmi registry and server" New topic

rmi registry and server

david hu
Ranch Hand

Joined: Jul 20, 2001
Posts: 143
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

Joined: Mar 28, 2003
Posts: 11765

Hi David,
The rmiregistry provided by Sun does not allow remote server applications - they must be on the same machine.
Regards, Andrew

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Martin Rea

Joined: May 04, 2004
Posts: 12
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
    I mean, is there any need for starting the server to use an IP or hostname?
    Andrew Monkhouse
    author and jackaroo
    Marshal Commander

    Joined: Mar 28, 2003
    Posts: 11765

    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
    I agree. Here's the link: http://aspose.com/file-tools
    subject: rmi registry and server
    It's not a secret anymore!