Jini and Network Computing/Moving an RMI application over to Jini

From Wikibooks, open books for an open world
< Jini and Network Computing
Jump to: navigation, search

When moving an RMI application over to Jini, the main issue is to stop subclassing UnicastRemoteObject and switch to using Jini Exporters instead.

The RMI registry is replaced with the Jini Lookup Service (referred to with LUS in many cases)). The RMI registry is for local registration and remote lookup. The Jini Lookup Service can be used from anywhere on the network that the appropriate routing is available. The Jini Service Lookup Specification provides for the use of multicast lookup which allows for come as you are computing to occur with no specific knowledge of the network. Where multicast is not supported or routed, unicast lookup can be used with specific IP addresses/host names.