Tag | Description |
---|---|
--help | Print a help message, then exit. |
--version | Print version information, then exit. |
Server "registers" its services in the registry. The client does not need to know the location of individual servers, and does a lookup on the RMI Registry for the service it needs. The registry returns the appropriate handle to the client to invoke methods on.
$ grmiregistry & [1] 8699 $ netstat -tulpn | grep grmiregistry tcp 0 0 0.0.0.0:1099 0.0.0.0:* LISTEN 8699/grmiregistry tcp 0 0 0.0.0.0:54682 0.0.0.0:* LISTEN 8699/grmiregistryYou can see that the process is listening on port 1099
$ grmiregistry 4000 & [1] 8610 $ netstat -tulpn | grep grmiregistry tcp 0 0 0.0.0.0:4000 0.0.0.0:* LISTEN 8610/grmiregistry tcp 0 0 0.0.0.0:58361 0.0.0.0:* LISTEN 8610/grmiregistryYou can see that the process is listening on port 4000