- Jini
Jini (pronounced like
genie and also called Apache River) is anetwork architecture for the construction ofdistributed system s in the form of modular co-operating services.Originally developed by Sun, responsibility for Jini is being transferred to Apache under the project name [http://incubator.apache.org/river/ River] .
Overview
Jini provides facilities for dealing with some of the
Fallacies of Distributed Computing , problems of system evolution, resiliency, security and the dynamic assembly of service components.Code mobility is a core concept of the platform and provides many benefits including non-Protocol dependence.The Jini team at
Sun Microsystems has always stated that Jini is not an acronym. Some have joked that it meant Jini Is Not Initials, but it's always been just Jini. The word "Jini" means "the devil" inKiswahili ; this is a loan from anArabic word for a mythological spirit, which is also the origin of the English word 'genie '.One of the goals of Jini is to shift the emphasis of computing away from the traditional disk-drive oriented approach, to a more network oriented approach. Thus resources can be used across a network as if they were available locally. Jini is based on Java, and is similar to
RMI but more advanced. Jini allows more advanced searching for services, through a process of discovery of published services (making Jini more similar to theSOA concept).There are three main parts to a Jini scenario. These are the client, the server, and the lookup service. [Taylor, Ian J. From P2P to Web Services and Grids - Peers in a Client/Server World. Springer, 2005]
The service is the resource which is to be made available in the distributed environment. This can include physical devices (such as printers or disk drives) and software services (for example a database query or message service). The client is the entity which uses the service.
Using a service
The first step in creating a Jini service is for the service to find the lookup service (LUS) - a process called discovery. Once the LUS is found, it returns a Service Registrar object to the service, which is used to register the service in the lookup (the join process). This involves providing information about the service to be provided, such as the ID of the service, the object which actually implements it and other attributes of the service.
When a client wishes to make use of a service, it too uses discovery to find the LUS - either by unicast interaction, when it knows the actual location of the LUS, or by dynamic multicast discovery. After contacting the LUS, the client is returned a Service Registrar object, which it uses to look up a particular service. It does this by consulting the lookup catalogue on the LUS and searching based on the type, name or description of a service. The LUS will return a Java proxy, specifying how to connect directly to the service. This is one of the ways in which Jini is more powerful than RMI, which requires the service to know the location of the remote service in advance.
Using the Proxy, the client may connect directly to the service implementation (without further interaction with the LUS), and use it as if it were a local service. However, there are some differences to the event model, in that the order of events occurring across a network cannot be guaranteed.
Services in Jini will not necessarily be permanently available, which leads to the concept of leasing. When a service registers with a LUS, a lease is granted, with a certain duration. This can be manually decided, or set to a default (such as 'forever'). Leases will need to be periodically renewed, to check a service is still 'alive', which means if a service fails or becomes unreachable, it can be timed out.
Jini uses serialization to send Java objects across the network. This means an entire Java object can be saved and sent, and used remotely as if it were local, as opposed to creating a specific format for sending data in each new implementation.
Jini services can be grouped together, to allow a client to search for specific groups. A group of services in Jini is called a "federation".
Limitations
Jini uses a lookup service to broker communication between the client and service. Many falsely believethat, because of this, it is essentially a centralized model (though the communication between client and service can be seen as decentralized) and that it does not scale well to very large systems. In a Jini network, one scales the lookup service by running multiple instances that listen to the same multicast group.As such, the lookup service is, indeed, scaleable. Because Jini is implemented in Java, many applications require a java virtual machine to be present.
ee also
* Java RMI
*Ken Arnold , one of the original Jini architects
* Juxtapose (JXTA )
*Java Management Extensions (JMX)
*JavaSpaces
*Simple Network Management Protocol (SNMP)
* Zero Configuration Networking
*OSGi Alliance
*Service Location Protocol
* Salutation
*Universal Plug and Play (UPnP)References
External links
* [http://www.jini.org/ Jini.org]
* [http://incubator.apache.org/projects/river.html Apache River Project]
* [http://java.sun.com/developer/technicalArticles/jini/JiniVision/jiniology.html The Jini Technology Vision]
* [http://citeseer.org/cs?q=JINI Citations from CiteSeer]
* [http://cswl.com/whitepapers/upnp-devices.html technique comparison]
* Article " [http://www.onjava.com/pub/a/onjava/2004/12/29/jini.html Jini: Out of the Bottle and Into the Box] " byDaniel H. Steinberg
* [https://rio.dev.java.net/ Project Rio]
* [http://jan.newmarch.name/java/jini/tutorial/Jini.html Jan Newmarch's Guide to Jini Technologies]
* [http://newton.codecauldron.org/ Newton] Open source Jini & OSGi based distributed component framework
* [https://bantam.dev.java.net/ Bantam - an open-source web framework for distributed systems]
Wikimedia Foundation. 2010.