开发者

Question about Jini API

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜