30
JINI Technology Ashwin Satyanarayana Venkatesh Nattanmai PART - I

JINI Technology

  • Upload
    bess

  • View
    59

  • Download
    0

Embed Size (px)

DESCRIPTION

Ashwin Satyanarayana Venkatesh Nattanmai PART - I. JINI Technology. Introduction to JINI. What is JINI ?. Jini is a way to do distributed computing that helps you manage the dynamic nature of networks. JINI is NOT a Acronym - PowerPoint PPT Presentation

Citation preview

Page 1: JINI Technology

JINI Technology

Ashwin

Satyanarayana

Venkatesh

Nattanmai

PART - I

Page 2: JINI Technology

Introduction to JINI

• What is JINI ?

• Jini is a way to do distributed computing that helps you manage the dynamic nature of networks

Page 3: JINI Technology

• JINI is NOT a Acronym

• It is a technology which helps devices to work together and connect simply

• Is Jini a Acronym?

Page 4: JINI Technology

Need for JINI

• Why JINI ?

• Enables a spontaneous "plug, use, and unplug" network

• No system administrator required

• Everything on the network (hardware or software) is a "service"

• Each service represented by a mobile object

Page 5: JINI Technology

Portability

Jini technology will run on any network with at least one Java Virtual Machine.

• Is Jini Portable?

Page 6: JINI Technology

To add Jini technology to existing software, it must have a Java "wrapper" so it will run inside the JVM. Then, add the Jini code that enables the original application to register itself with the lookup service.

• How do you add Jini to an existing software?

Page 7: JINI Technology

Hierarchy of Layers

• Where does JINI fit in the hierarchy?

Page 8: JINI Technology

• Jini connection technology is designed to simplify networking through an infrastructure to support devices connecting and forming communities.

• It is based on Java technology, using the Remote Method Invocation to move code around the community

Jini Infrastructure

Page 9: JINI Technology

• Jini technology provides simple

mechanisms which enable devices to plug together to form a community put together without any planning, installation, or human intervention.

• Each device provides services that other devices in the community may use.  These devices provide their own interfaces, which ensures reliability and compatibility

• How does JINI work?

Page 10: JINI Technology

• Where is JINI used?

• Devices permeate our lives.  Look around:  TVs, DVDs, cameras, phones, PDA, printers, disk drives, pagers. A device performs a simple task, and only that task.

• Today devices are unaware of their surroundings - they are rigid and cannot adapt.  When you buy a disk drive, you expend a lot of effort to install it or you need expert to do it for you.

Page 11: JINI Technology

Jini in the device

• With the help of JINI Technology, a device that can take charge of its own interactions can self-configure, self-diagnose, and self-install. 

• How does JINI Technology help in devices?

Page 12: JINI Technology

Jini in networks!!!

• With the ever falling cost of Computers ,Jini technology creates the possibility of impromptu device communities popping up in all kinds of places far from any sys admin.

 • Self-managing devices reduce

further the need for expert help, and this should lower the total cost of ownership for Jini connection technology-based systems.

• How does JINI reduce the cost of the modern day networking devices?

Page 13: JINI Technology

Parts of Jini

Components of a Jini System

• What are the components of a JINI System?

Page 14: JINI Technology

• Explain the components of the JINI System?

• In a running Jini system, there are three main players.

• There is a service, Eg : printer, a toaster, a

marriage agency, etc. • There is a client which would like

to make use of this service.• Thirdly, there is a lookup service

(service locator) which acts as a broker/trader/locator between services and clients.

• There is an additional component, and that is a network connecting all three of these, and this network will generally be running TCP/IP.

Page 15: JINI Technology

It gives the device following

Characteristics• Instant On: a device works as

soon as it is plugged into the community.

• Impromptu Community: create a community of services for the location and personal needs

• Resilient: the community changes over time, but is always available.

• Special Delivery: services are available on demand, as needed.

• What are the positive aspects of using JINI Technology in a commonly used devices like Camera and Cell Phone ?

Page 16: JINI Technology

Sample JINI Working Model

• Connects to a TCP/IP network. • Use a discovery protocol to find

at least one lookup service. • Register with the lookup

service.• Continue to renew the

resource's leases, as long as the service is available to the network.

Page 17: JINI Technology

End of Part - I

Thank You

Ashwin Satyanarayana

Venkatesh Nattanmai

Page 18: JINI Technology

JINI Technology

Ashwin

Satyanarayana

Venkatesh

Nattanmai

PART - II

Page 19: JINI Technology

Digital Camera Example

Without JINI• Today, the camera is cabled to

a general purpose computer or the camera memory is removed and inserted into a computer, in

order to download the images.

With JINI• With Jini technology it’s possible for a

camera to plug into a digital photo kiosk or simply connect the camera to your home Jini network.

• We will instantly have access to the files and can choose to use color printer services or share the images through your distributed disk service.

• Jini connection technology enables impromptu networks of resources to live and serve in the ever changing world.

Page 20: JINI Technology

Calculator Example

Lets take a look at implementing the calculator service and registering its service on the network

The steps involved are a) define a Calculator interface b) Create the GUI Frame class for it c) Create the object that does the actual service d) Use the Join Manager for easy registration.

Page 21: JINI Technology

Calculator Example

• The interface Calculator Code :

/** This is the contract interface, which is being provided by the CalculatorService class **/

import java.awt.Frame; import java.rmi.*; public interface Calculator

extends Remote { public Frame getCalculator()

throws RemoteException; }

• Explain the Interface Calculator Code?

Page 22: JINI Technology

Calculator Example

• Explain the getCalculator() method?

The function getCalculator() is implemented as follows:

Public Frame getCalculator() throws RemoteException

{ Frame f = new CalcFrame();

f.setSize(300,150); return f;

}

Page 23: JINI Technology

Calculator Service class

The CalculatorService is registered

with the lookup service as follows

CalculatorService calculatorService=

new CalculatorService();

String hostName ="chittu.cswl.com";

Naming.rebind("rmi://"+hostName+“

CalculatorService",calculatorService);

System.out.println("Bound

with RMIRegistry");

Object serviceStub = Naming.lookup("rmi://"+hostName+"/CalculatorService");

System.out.println("Trying to Join Manager");

// Join the manager so that it will become a part of federation

new JoinManager(serviceStub, attributes,calculatorService,

new LeaseRenewalManager());

Page 24: JINI Technology

JINI - DCOM - CORBA

Uses the Object Remote Procedure Call(ORPC) as its underlying remoting protocol

Uses the Internet Inter-ORB Protocol(IIOP) as its underlying remoting protocol

Uses the Java Remote Method Protocol(JRMP) as its underlying remoting protocol (at least for now)

Will run on any platform as long as there is a COM Service implementation for that platform (like Software AG's EntireX)

Will run on any platform as long as there is a CORBA ORB implementation for that platform (like Inprise's VisiBroker)

Will run on any platform as long as there is a Java Virtual Machine implementation for that platform (provided by a whole lot of companies in addition to JavaSoft and Microsoft).

DCOM CORBA JINI

Page 25: JINI Technology

• Sun was recently awarded a contract by the U.S. Army to employ Sun's Jini technology for a dot-com solution to link the network of complex, sophisticated equipment in its battlefield command spots, known as Tactical Operation Centers (TOCs).

• Jini technology meets the requirement by letting computers and other devices interoperate immediately after being connected.

JINI in Mission-CriticalDeployment.

Page 26: JINI Technology

Companies using JINI

• 3Com, Palm Computing Inc.• Canon• Computer Associates• Cisco Systems Inc• Ericsson, for the Bluetooth Consortium• IBM• Kodak• Motorola• Nokia• Novell• Philips• Phoenix Technologies• Samsung

•Seagate•Sharp•Sony•Toshiba•Xerox

Page 27: JINI Technology

Microsoft Vs Sun

• The Sun rival is hard at work on its own new-age networking technology, called Universal Plug and Play. Microsoft and several other companies are developing ways to shield users from the often-obtuse demands of networking equipment together.

Page 28: JINI Technology

References

1.Overview of JINIhttp://pandonia.canberra.edu.au/java/jini/tutorial/Overview.xml#Jini

2.JINI Example codeshttp://www.cswl.com/whiteppr/tutorials/jini.html

3.Comparison of JINI with CORBA and DCOMhttp://www.execpc.com/~gopalan/misc/compare.html

4.JINI in US ARMYhttp://www.sun.com/dot-com/studies/jiniinthearmy.html

Page 29: JINI Technology

References

5.Introduction to JINIhttp://triton.cc.gatech.edu/ubicomp/603

6.JINI Network Technology Whitepapershttp://www.sun.com/jini/whitepapers/technologies.html

7.JINI Videoshttp://abcnews.go.com/sections/tech/CuttingEdge/jini990913.html

8.Information on JINI Technologyhttp://www.dalmatian.com/java.htm

Page 30: JINI Technology

End of Part - II

Thank You

Ashwin Satyanarayana

Venkatesh Nattanmai