You are on page 1of 15

MANIPAL INSTITUTE OF TECHNOLOGY

¬  
  
 


MANIPAL - 576 104, KARNATAKA, INDIA
c
c

c
c 
c
c
c
c

The Jini Architecture


c
c
c
c
c c

 cc
 c cc
 c
 c c c
c c c c cccc
Contents

c -        
c
       
c  !      
£c  "
£c !
£c ¦" #
£c G
£c  
$c   " %
&c ' !( )
*c + ¦" #( 
,c   -¦  (
.c  $
          
          
          
 
     

c
1. Background

G!"  (   (-+  +  ((   / !0!/( 
 #  "(0 (  0 # + #   /(#  " !   
/(#      !   +  !(    !"   # /   ( 1!(
 !   

+  G     #  +  (- #   +  Jini    #   + " 
2 +  Jini Is Not Initials0/3 (- #/ 2Jini+ -4G4 4+ 
 "(4- +(5+ (     /-  #+( (!0-++ (+ 
 + (+-3  36- "  #G "  +( / -+  ! (G0 
+   + (   !   # /  /   !!( (#+  ( +  (  ¬44
  +     

7    +   (   G   +  +  !+    ! - #  +    ( 1
"    !! +0   -   !! ++   /   
 -  + #-   " ( /( ( ((#G/  G " 0 ( G "   
+
"   /   "   G ((-   "    +   " 0
++  !    " #   !/(+   "  ¬  G   +   " 1  
+   !


‰.Introduction 

G8  +(#    +(#  /(  "     +   +     
!   ( -++ /+ '!(  '  G " 8  +(#   /(  + 
     0 /  #          - ((1/ + "   -
 "   (  G  +(#   /     /(  !"   - #  +   
 ( /( 0 "(" /(   ( '/(  #! ((# 9 # ! " 

+     +    !    G    +     +  ( 0 +   " 0  +  (!
 " :;

+   "   +     -++   /     " ( /(   +  /  " +
 ( !+# ( " ¬+ ! "   -   " ¬  ' !( 
  /  9 #    " + ( +  #-++ +  " 


Î. Concepts
+ G +  !   "   ' (( " " - G
!   !+ 
  (  G  <1

'c  "
'c !
'c ¦" #
'c G
'c  
Î a) Service
=+ G +  !   <

+ !  !-++ G +  +    "  service
 #+  /  /# ! 0 ! 0 +  "   "  #/  
! 0   0    +  (  +   0   -   ( 0 
+ -   " 0 +  - ' !(   "   !   
 (   -1!    + 
/   G#     +     "  G# +(
/  ++        (    " 0    ! 0  "  !  
( 
 0  G #      "  +    /  ((    +   + 
!      ! (   "  #    +  " 0  (  
  "  # ( /   " -+(  -+ #     G
#   /(   "   /     -+ -       #  
    0  0  +  +   9     +  -!  + 
# 
G #  !"   +    "  0 (!0  0 
    /  #  ' !(     "  ( <  "  +  ! 0
!( #05 -  +  !!( ( 5  +   /  
 ( 5   + # 
 "  G#   -+ ++ /#  " !(0-++
      - + G " ! (   +   +!(
!   + /  G#     ((/  +!(+   
 ( "   

 !    0 G "  ((#   G +  ! /( 
  /   ((    (#0 /# G (   "  /# +   "   "  +   
#    ! /(   (( ++      2


 "    (  " ( /(  2++- !<

c '! ( +!    !'#/2  +  " -++ / +  
     (  +  !'#  !(        -+ +   " 0
 ((#"  !0 - (( + !  !( 0+ 
G

c G 2/#  !'#-+(! " +   +  " 
(   (!  "  "    " #  (  " #  !!(  +
  -+  !'# +  (!  "     !/(   +  +  !'# "  
   ( + +  "  /    (( 

 "    "   "  + + '7+ - 0+ #
  ++ -G 

Î ) Lookup
G  "  (   + +  ++ !   lookup  +  !    
(! " +   0-++ !  +  "  " ( /(  2

( " (! " ++  - + <

£c  " #1 + + !  (! " -0 ((  (#
£c (  " # 1  ¦ /        " ( /(  (!  "   + 
 -

7  (! " "  0 (   "  !'# + ( +  + 
!'#!  (! +  " -  ((

 ( !    (!  (# /# !  # G "     + +     "  
!(   = ' !( 0    (  -   !   " 0   #  +  (!  "  
 ++ !(   Y  + (   ((   ¬ / + !" 
+   ( /+     " 5  ' !( 0! + !+  Y   "   / 
/( ! (0/( 1 
 ! +  " 0-+    -+  (!
 " 0  !"  " (     +  (   #   ¬'  +    '! 
  ((# !(   +         +  +   !  "  !(  0 
+!  (+ /   + 

  ! 0 +  (!  "         !'    "  +   + -+  + 
(     +!0+ (  +    ((# ( ! "     ((+ 
 (#
Î d) Discovery
?  c  c c
c  c
c c   c  c c c c ?  c 
c c  c  c
   c  
c c ?  c  c 
c    c    c c    c  c
 
c c c   c c   c c    c  c   c c    c c  c c
c
 c  c    c c c 
c 
c 
 c c   c 
c   c   c  c
 
c c c  c c c c c  c  c c c c  c

c c c c
cc  cc   c

Î 
+  G (      >    "  -+  (!  " 0    
+     0+ + !0 / 0 

= ' !( 0   "   +  +    / -+-++   ( 0
    +      /      0+   !   +   9   +    +
(! " -+-++   

+  G ( + !!    +  " # ! 0   !(+  /#  + 
-(  !'# + (! " 

Î ) Lease
Lease /  +    (1(    (G+    ( 
/ +  (    (# !(  ?+          0+  ! #    
  +  9    " (  +   +   -((+ "    
 !   + ( + +  9  ¬ (++ #/ + 5+ ! 
  +   ((#    +  9  !  + (  /2  +(  
 (      9  +   (   /    - 0    ( +  (    #     ((#
  - (   ' +  ! -+++ (     ((+ (  
!+ (     (#
 (   '! 0+   + (       + 
  +    +   0 + +(  + ¬- '! (   -+ + 
 +   +  ?+ +   (   (   '! +(/ !   
!  +  ! +  + (( -+ + (  -  ((#" 

+    0  0  #  (+ + "  /  (  +    ( ! + !
+ / - #  +  ((  ! (  ' !( 


7    +   "  +    (   +  (!  "  ?+    "     -+ 
(! " 0 9  !    +   + (! " -((  
(  + +   +  9    +   ' (   + +  / 
   + ! ( (! " 
+ !+  "   -+ (  + 
+  /    ( +    ((?+   -+ (  0+  " -((  
     - (    ! (   0  +    - ( -((   /  +     + 
 9    +  '(     /#+ (! "  - ((1/ + " 
(! " -((  #(    - ( 9 +   " 
  " -+  
  -++ (! " 0-((  (+ (  0 + (! " -((+ !
+    +  " 

+    +  +      (  0 +- " 0    ( -+    -+   +   " 
/   " ( /(  !(   
+  " -   +0/   " ( /( 
/     - ( 0-(/  /(   (  
+   0+ (  
 +     -(( '!   +  !0 +  (!  "  -(( ! +    0
 ( +  + +  " (  " ( /( +/ + "!   /#+ (!
 " 0 +  " /   " ( /(   + ( ! 0-+   1  
¬ + + # (    - (+- " ( /(#

 -+    ' !(  ( +   (  +       G
((      (  0  +  (     /    - 
     (   '! 0
+- " 0 +   (  +  +     / + ((- +           (
-+ + ! ! 5  (+-+ +  + /   (   '!  
 !  +    +   + / (  

     (   !1 ("       + / 0 /    +          / 


"     (     + +  ( +     +   ((-  /   (  
"    "     /    + /     / - 
+ (  +  "  +  "  ( 0 + + /   # 1- / 


$Using a service
+    !     G  "    +   "    +  (!  "  ¬ 1 
!   ((  discovery 7  +    0      "     /2   + 
 " 0 -++        +   "   +  (! ¬+  join !  + "(" 
!"   /+  " / !" 0+ + 
¦ +  " 0+ /2 
-++  ((#!(   +  /  +  " 

?+  ( -+       " 0 " # + 1 + /#
    0 -+   - +   ( (    +  0  /# #  ( 
" #     +  0 +  (        "     /2 0 -++ 
 (! ! (  " 
 +/#(+ (!  (+  
 +/  + #! 0   !   " + -((  G " !'#0
!  #+-  (#+  " +  + - #-++G 
!-  ( +  
0 -++  9  +   "   - +  (    +      "  
"  

+ '#0+ (  #  (#+  " !(   ¬-+ + 
   -+ +  0         -    ( (  "  6- " 0 +      
   +  "  (0+ +    "    - / 
   

 "   G -((     (# /  !   (# " ( /( 0 -++ (   +   !  
leasing?+   "   -+ 0 (    0-+    + 
/    ((#  0   (¬+  3  " 3  -((  / !  ((#
  - 0+   " ((3 (" 30-++    "  (/   + /( 0
 /  

G   (@  G " /2  +  -+    G " /2 
  /   "    0      (#     -   ( (0  !!     !  
      + -!(   

G "  / !  + 0 ((- (  + !  ! ! 
 " G ((  {  
5.

3cc c  cc c cc
c c

+ !   A( (! " B   + ( ( -

 +(! " +  - !-+ !'#  ( 

$+ !   !'#/2   / -+ +(! " 

+ !'#  +(! " 

&  -+  (    + -0 + - !

  -! 

*+     A( (! " B   + ( ( -

, +(! " +  - !-+ !'#  ( 

.+     +  #!   "  + !'    

(! " + (! "     +!'#/2 0

 + ( ++  + /#+  / 

%+  ' (# + !'#-(  +    + + 

   /  + !'#  -++ ! !+ ! 













6. The Discovery Protocols
+ (   + " #!+  <

£c (  9 (

£c  " #!(

£c (    (

The Multicast Request Protocol

£c +  (  9 (  /# "  #¬ (   " 
(   (! " 

£c
  < + ( ¦ + A( (! " B
   +  -0+ +    -  + (! " 
 / 

£c
 +   -( + !'#/2  + (! " 

The Unicast Discovery Protocol

Cc -# ( 0  "  #   (#   +  (!  "   +  ( (
 -

Cc ?+       -      G  "   +   -D   +   
¦" #(E

Cc + (  / ( /+ (  +   (! " 

Cc +  +  (   (#  /(+  +       +  (!  "  
-( + (! " F!'#/2 
The Multicast Announcement Protocol


Cc +  (    (  /#+ (! "   
'  

Cc
 (  < + ( ¦ + A6  
 B   
+  -0+ +    -  + "  #  /(+ 
-(  
 0+  +      + 
 ¦" #(

Cc
   +          +  !'# /2    +  (!  "   + 
"  #

 


7. Some Network Details
£c ++ +  G !     F '!((#  # +  G  (   +   >
0 /
 ((# 

£c + G!    #<

 ¬ >
/  

G

+ (  9  + ( 


  $).& 

¦!/ $*)/# (5

+  " # +  !/ $*)/# (5

+ (     + ( 


  $).$

/# (5

H

£c  
                 { 
A. Limitations
G  (! " /  / - + (   " + !! 
/    (@  (¬+++  / - (   "  /   
   (@ +   ( - ((" #(  # 6- " 0+ (! "  / 
 ( /#(!(   + ( +   ( !

-    G  !(     G " 0  # !!(   9   G "  " (  +   / 
!  
Reerences
3c
    ! " ! "!3" !#$%&&'("!
)*)+')+
'  )+'?,   , ,
, , ,  )+'+3##,-*../*,
01#+..2
" !1# 3(? 435& *678%"!'&($9'7&*& *45  $:%9;<
"+!35./;3348:104+ &c

+c = c (  c  c c 


c

*c  >c @ c c 'c A+Ac c 5 c ?  c c Bc ,c A c c c $  ?  c 5c ?  >c
+##0c

.c
($ @  / / c