A method for invoking remote objects in a data processing system includes
generating a serialized byte stream containing the remote object and its
arguments, responsive to executing a remote object call. The serialized
byte stream is sent to a server containing the object. Responsive to
receiving a second serialized byte stream containing a result produced by
the remote object and determining the presence of a second remote object,
in the second byte stream, for which no reference can be found,
information contained in the second serialized byte stream is used to
determine the class type of the second remote object. A proxy compatible
with the second remote object's class type, if not already existing, is
automatically generated and compiled on the client or, if the proxy does
exist, is loaded at run time to call the second remote object.