< Zurück | Inhalt | Weiter >

5.8.3 The rmiregistry Tool

The rmiregistry is a naming service that binds RMI server stubs to simple names. Invoking it is incredibly simple. Just type rmiregistry. You may want to run it on other than the default port (1099). For that, just specify the port number on the command line:

$ rmiregistry 21099 &

That example shows us running a registry on port 21099 and running it in the background. You might want to use a nonstandard port in order to run a test version of the service while the production version remains available on the standard port.

That is just about all there is to rmiregistry. You can find details in the Sun Java SDK documentation.