Java RMI
SecurityManager
.SecurityManager
guarantees that loaded
classes do not do bad things.main
) it
creates one (or more) instances of the remote object. Since this
construction automatically exports the object, the object is
immediately ready to accept incoming calls.Naming.rebind("//host/objectname", obj)
which
allows the caller to find the object by name. If host is omitted
then localhost is assumed.obj
). The registry return this stub.6 of 22