JINI Technology - PowerPoint PPT Presentation

About This Presentation
Title:

JINI Technology

Description:

JINI Technology Ashwin Satyanarayana Venkatesh Nattanmai PART - I Calculator Example Lets take a look at implementing the calculator service and registering its ... – PowerPoint PPT presentation

Number of Views:799
Avg rating:3.0/5.0
Slides: 31
Provided by: Venkatesh2
Learn more at: http://www.cs.albany.edu
Category:
Tags: jini | mobile | sony | technology

less

Transcript and Presenter's Notes

Title: JINI Technology


1
JINI Technology
  • Ashwin
  • Satyanarayana
  • Venkatesh
  • Nattanmai
  • PART - I

2
Introduction to JINI
  • What is JINI ?
  • Jini is a way to do distributed computing that
    helps you manage the dynamic nature of networks

3
  • JINI is NOT a Acronym
  • It is a technology which helps devices to work
    together and connect simply
  • Is Jini a Acronym?


4
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

5
Portability
  • Jini technology will run on any network with at
    least one Java Virtual Machine.
  • Is Jini Portable?


6
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?

7
Hierarchy of Layers
  • Where does JINI fit in the hierarchy?


8
  • 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
9
  • 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?



10
  • 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.

11
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?


12
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?


13
Parts of Jini
Components of a Jini System
  • What are the components of a JINI System?


14
  • 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.

15
  • 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 ?


16
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.

17
  • End of Part - I
  • Thank You
  • Ashwin Satyanarayana
  • Venkatesh Nattanmai


18
JINI Technology
Ashwin Satyanarayana
Venkatesh Nattanmai PART -
II
19
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 its 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.

20
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.
21
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?


22
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
23
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",calculator
Service) System.out.println("Bound with
RMIRegistry")
Object serviceStub Naming.lookup("rmi//"hostNa
me"/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())
24
JINI - DCOM - CORBA

25
  • 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-Critical Deployment.

26
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

27
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.

28
References
1.Overview of JINI http//pandonia.canberra.edu.a
u/java/jini/tutorial/Overview.xmlJini 2.JINI
Example codes http//www.cswl.com/whiteppr/tutoria
ls/jini.html 3.Comparison of JINI with CORBA and
DCOM http//www.execpc.com/gopalan/misc/compare.h
tml 4.JINI in US ARMY http//www.sun.com/dot-com/
studies/jiniinthearmy.html
29
References
5.Introduction to JINI http//triton.cc.gatech.ed
u/ubicomp/603 6.JINI Network Technology
Whitepapers http//www.sun.com/jini/whitepapers/te
chnologies.html 7.JINI Videos http//abcnews.go.c
om/sections/tech/CuttingEdge/jini990913.html 8.In
formation on JINI Technology http//www.dalmatian.
com/java.htm
30
  • End of Part - II
  • Thank You
  • Ashwin Satyanarayana
  • Venkatesh Nattanmai

Write a Comment
User Comments (0)
About PowerShow.com