dcsimg
how to find the host name and port number of an registry on which an remote Object is registred.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   vijay_venkata
Posted On:   Tuesday, May 29, 2001 04:17 AM

Hello....

I want to know how to find the Host Name and the Port number on which my remote Object is registred from client side, if possible please give me relevent code.

regards

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.
About | Sitemap | Contact