Re: how to find the host name and port number of an registry on which an remote Object is registred.
Posted By:
srinath_mandalapu
Posted On:
Monday, June 25, 2001 02:36 PM
Once remote object is exported, it is usually registered with RMI registry (using Naming.bind()) with certain name. When client fetches the stub from RMI registry using its registered name, the stub internally contains a concrete implentation of "RemoteRef" (which is nothing but "LiveRef", sun's RMI implementation class). This LiveRef contains the host, port and object id of the remote object.