gpt4 book ai didi

java - Jini 和 RMI 有什么区别?

转载 作者:行者123 更新时间:2023-11-30 07:00:22 26 4
gpt4 key购买 nike

我是 Jini 技术的新手。我了解它用于分布式计算或“网络即插即用”。但是我不明白纯 RMI 和 Jini 之间的区别。另外,我想了解何时使用 Jini。

最佳答案

如维基百科文章 ( http://en.wikipedia.org/wiki/Jini ) 中所述:

Clients can use the lookup service to retrieve a proxy object to the service; calls to the proxy translate the call to a service request, performs this request on the service, and returns the result to the client. This strategy is more convenient than Java remote method invocation, which requires the client to know the location of the remote service in advance.

基本上,RMI 是一种在相互了解的客户端和服务器之间执行 Java 调用的机制。 Jini 增加了从客户端查找服务的服务,因此客户端不需要事先知道服务器的位置。

关于java - Jini 和 RMI 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30682874/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com