1 / 30

JINI Technology

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

bess
Download Presentation

JINI Technology

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ashwin Satyanarayana Venkatesh Nattanmai PART - I JINI Technology

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

  20. Lets take a look at implementing the calculator service and registering its service on the network Calculator Example 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",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());

  24. Uses the Object Remote Procedure Call(ORPC) as its underlying remoting protocol Will run on any platform as long as there is a COM Service implementation for that platform (like Software AG's EntireX) DCOM Uses the Internet Inter-ORB Protocol(IIOP) as its underlying remoting protocol Will run on any platform as long as there is a CORBA ORB implementation for that platform (like Inprise's VisiBroker) CORBA 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 Java Virtual Machine implementation for that platform (provided by a whole lot of companies in addition to JavaSoft and Microsoft). JINI 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.au/java/jini/tutorial/Overview.xml#Jini 2.JINI Example codes http://www.cswl.com/whiteppr/tutorials/jini.html 3.Comparison of JINI with CORBA and DCOM http://www.execpc.com/~gopalan/misc/compare.html 4.JINI in US ARMY http://www.sun.com/dot-com/studies/jiniinthearmy.html

  29. References 5.Introduction to JINI http://triton.cc.gatech.edu/ubicomp/603 6.JINI Network Technology Whitepapers http://www.sun.com/jini/whitepapers/technologies.html 7.JINI Videos http://abcnews.go.com/sections/tech/CuttingEdge/jini990913.html 8.Information on JINI Technology http://www.dalmatian.com/java.htm

  30. End of Part - II • Thank You • Ashwin Satyanarayana • Venkatesh Nattanmai

More Related