File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Remote Client ?

 
Rekha Rao
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Thomas Fly
Ranch Hand
Posts: 164
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Sai Prasad
Ranch Hand
Posts: 560
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic