A stub retrieval and loading subsystem is disclosed for use in connection
with a remote method invocation system. The stub retrieval and loading
subsystem controls the retrieval and loading of a stub for a remote
method, into an execution environment, to facilitate invocation of the
remote method by a program executing in the execution environment. The
stub retrieval subsystem includes a stub retriever for initiating a
retrieval of the stub and stub loader for, when the stub is received by
the stub retriever, loading the stub into the execution environment,
thereby to make the stub available for use in remote invocation of the
remote method. In one embodiment, the stub retrieval and loading
subsystem effects the retrieval and loading for a program operating in
one address space provided by one computer, of stub class instances to
effect the remote invocation of methods which are provided by objects
operating in another address space, which may be provided by the same
computer or a different computer.