06-04-2012, 11:26 AM
Jini Technology
JINI2.ppt (Size: 150 KB / Downloads: 37)
Jini introduction
Jini is a technology that is based on Java and Tcp-IP and that, using net protocols, allows to put in communication different objects between they in an only one network.
As an example a printer, in the moment in which it is connected to a Jini community, before will be introduced and then it will as an example expose to its interface, containing the service print.
If subsequently a Jini refrigerator must have need to print a page, it will be sufficient that it goes to search who, in the community, puts to disposition the service print and then to demand the execution
Service
A service can be computation, memory, a communication channel, a dispositive hardware, or an other customer.
Two examples of services are: to print a document and translate a document from a format to an other.
A system of Jini would not have to be believed like with about clients and server, or customers and programs, or programs and databases, rather, a Jini system consists to accomplish one particular operation.
The services in a Jini system communicate between they using a protocol, that it is with of interfaces written in the language of Java programming.
Java Remote Method Invocation
The communication between the services happens using Remote Method Invocation (RMI) supplied from Java. RMI not only allows to transfer gives to you from an object to other through the net, but also complete objects, comprised the code.
Leasing
The access to many of the services in to the environment Jini is based on the leasing. A leasing is one concession of access guaranteed for a sure period of time.
The programming model
The interfaces that compose the model of programming of Jini are the following:
leasing interface: it defines a way in order to allot and free the resources using a rinnovabile model and based on the duration;
event and notification interface: they are an extension of the model of event used in the JavaBeans members for distributed systems, they allow the communication based on the events between Jini services;
transaction interface: allows a group of services to cooperate second the approach of the transactions in such way that the change made from the group happens in atomic way.
JINI2.ppt (Size: 150 KB / Downloads: 37)
Jini introduction
Jini is a technology that is based on Java and Tcp-IP and that, using net protocols, allows to put in communication different objects between they in an only one network.
As an example a printer, in the moment in which it is connected to a Jini community, before will be introduced and then it will as an example expose to its interface, containing the service print.
If subsequently a Jini refrigerator must have need to print a page, it will be sufficient that it goes to search who, in the community, puts to disposition the service print and then to demand the execution
Service
A service can be computation, memory, a communication channel, a dispositive hardware, or an other customer.
Two examples of services are: to print a document and translate a document from a format to an other.
A system of Jini would not have to be believed like with about clients and server, or customers and programs, or programs and databases, rather, a Jini system consists to accomplish one particular operation.
The services in a Jini system communicate between they using a protocol, that it is with of interfaces written in the language of Java programming.
Java Remote Method Invocation
The communication between the services happens using Remote Method Invocation (RMI) supplied from Java. RMI not only allows to transfer gives to you from an object to other through the net, but also complete objects, comprised the code.
Leasing
The access to many of the services in to the environment Jini is based on the leasing. A leasing is one concession of access guaranteed for a sure period of time.
The programming model
The interfaces that compose the model of programming of Jini are the following:
leasing interface: it defines a way in order to allot and free the resources using a rinnovabile model and based on the duration;
event and notification interface: they are an extension of the model of event used in the JavaBeans members for distributed systems, they allow the communication based on the events between Jini services;
transaction interface: allows a group of services to cooperate second the approach of the transactions in such way that the change made from the group happens in atomic way.