Example: Jini
Sun’s Jini is a framework for spontaneous discovery of services that exist in a LAN (for example), and for reliable federation of these services.
It makes essential (and creative) use of aspects of RMI like dynamic class loading and call-backs (discussed next).
The Jini lookup services generalize the RMI registry. In Jini an arbitrary proxy object is installed in the lookup services.
- The proxy is not restricted to be an RMI stub. It can be any serializable object, typically including remote references to an actual server object.
The code for the proxy is downloaded dynamically by the client, on lookup.