开发者

Question about Jini API

开发者 https://www.devze.com 2023-02-15 04:40 出处:网络
I am trying to learn about the Jini API in java, but can\'t get my head around how the server and 开发者_运维技巧client interact, and am constantly seeing things being referred to as \"smart proxies\"

I am trying to learn about the Jini API in java, but can't get my head around how the server and 开发者_运维技巧client interact, and am constantly seeing things being referred to as "smart proxies". What are smart proxies? And how does the client and server interact ?

Thanks.


Jini is based on Java RMI, so clients and servers communicate with each other just as they do in RMI: request/response using RMI protocol on the wire.

As for the "smart proxies", the Jini compiler uses a proxy factory to generate implementation code for your interface that includes an API for sending and receiving meta data about services. This is the magic that makes it possible for a client to send out a request for a certain kind of service on the network (e.g. "I'd like a color laser plotter") and select from the responses to find the best match possible.

0

精彩评论

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

关注公众号