• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Remote Client ?

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The instruction says:
"The remote client code that you write must provide all the public methods of the suncertify.db.Data class. "
Why are they specifying remote client?
I am under the impression that- in the network mode the server is "remote" and, the client is local in the non-network mode.
The client does not implement Remote interface in either mode.
 
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See the RMI tutorial & code.
If it helps clarify things for you, in my implementation, my "server" is just a special "administrator-mode" case of my "client," which starts up the "local" database, and then makes that database available to "normal" (i.e., remote) clients via RMI.
The normal clients may be running on the same physical processor, however, in which case they are "remote" only in the sense of running in a different virtual machine (in which case they connect to the server via "localhost").
The "R" in RMI does stand for "remote," you know
 
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Rekha Rao:
I am under the impression that- in the network mode the server is "remote" and, the client is local in the non-network mode.
The client does not implement Remote interface in either mode.


Rekha,
You need to look from the server perspective. The client is local or remote to the server depending on the startup mode. You need to stick to SUN specifications by creating a class at the client side with all the public methods defined in the Data class.
You can think of this class at the client as a proxy for the remote server object. This proxy object encapsulates the _Stub instance of the remote object. In addition to this proxy, you can have a client side Factory object to assign the appropriate Data instance to the client side proxy.
reply
    Bookmark Topic Watch Topic
  • New Topic