grmiregistry - Unix, Linux Command



NAME

grmiregistry - Remote object registry

SYNOPSIS

grmic [OPTION] ... [port]

DESCRIPTION

grmiregistry starts a remote object registry on the current host. If no port number is specified, then port 1099 is used.

OPTIONS

TagDescription
--help Print a help message, then exit.
--version Print version information, then exit.

EXAMPLES

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.

1. Starting on default port

$ 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/grmiregistry
You can see that the process is listening on port 1099

2. Specifying port

$ 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/grmiregistry
You can see that the process is listening on port 4000
Advertisements