Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Distributed Programming

It is envisioned that Jini technology will be used to build a wide variety of distributed systems. To facilitate this, Jini distributed programming adds functionality to the core Java platform for three types of distributed programming operations: leasing, distributed events, and distributed transactions. Each of these is defined below.

Leasing

In distributed systems, the concept of leasing is analogous to leasing a car. When you lease a car, you negotiate a certain amount of time to use the car. When the lease expires, you return the car, never having to worry about it again. Similarly, the leasing company does not need to worry about keeping records on you after you return the car (except, of course, for future marketing purposes). With 2.5 billion Java capable devices, naming services like today's DNS would quickly be overwhelmed and ad hoc distributed programming would not be possible. Jini objects, therefore, negotiate leases with each other that dictate how long they wish to use, or offer for use, a particular service. This negotiation takes place during the Discovery and Join process. Before a lease expires, a device must re-negotiate the lease or its connection becomes no longer valid. This solves the problem of distributed garbage collection on Lookup tables.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint