开发者

Determining ip of java rmi remote object host machine using rmi registry

开发者 https://www.devze.com 2023-02-08 07:45 出处:网络
Is there a way to determine the ip of the machine on which a remote object is hosted?Is there a way to get this information开发者_Go百科 from the rmi registry?You can access a rmiregistry only by usin

Is there a way to determine the ip of the machine on which a remote object is hosted?Is there a way to get this information开发者_Go百科 from the rmi registry?


You can access a rmiregistry only by using the IP it resides. And you can only call methods that are registered with the Remote interface. So writing a function in the interface to return an IP is of no use, I think.


There is no use you can possibly make of the information, so it isn't provided via an API. All you need to do with the stub is call remote methods with it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号