80.

previous chapter table of contents next chapter
  

Client Lookup

The client on the other hand, is trying to get a copy of the service object into its own JVM. It goes through the same mechanism to get a registrar from the lookup service, as shown in Figures 1-5 and 1-6.

click to expand
Figure 1-5: Querying for a service locator
click to expand
Figure 1-6: Registrar returned

However, the client does something different with the registrar. It requests that the service object be copied across to it. See Figures 1-7 and 1-8.

click to expand
Figure 1-7: Asking for a service
click to expand
Figure 1-8: Service object returned

At this point the original service object is running on its host, there is a copy of the service object stored in the lookup service, and there is a copy of the service object running in the client's JVM. The client can make requests of the service object running in its own JVM.

  


A Programmer[ap]s Guide to Jini Technology
A Programmer[ap]s Guide to Jini Technology
ISBN: 1893115801
EAN: N/A
Year: 2000
Pages: 189

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net