开发者

Java RMI server registry connection observer trigger

Is it possible to get some kind of notification from the registry when a new server is connected to a local RMI registry instanc开发者_如何学Pythone?


Not with the standard registry interface; there's nothing in it to allow you to register a callback with the registry for it to notify you by.

That's not to say that you couldn't write a registry that did this, extending the Registry interface with the necessary capabilities, etc. It's just that the standard registry doesn't do that. It's a very simple, primarily passive service (which has the advantage of there not being that much to go wrong with it, a good feature in a foundational component).


No it is not. The question doesn't actually make sense. Connecting to a remote object happens when you call a remote method. It has nothing to do with the RMI Registry at all.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜