aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Remote Client ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Remote Client ?" Watch "Remote Client ?" New topic
Author

Remote Client ?

Rekha Rao
Greenhorn

Joined: Jan 23, 2001
Posts: 15
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

Joined: Sep 09, 2002
Posts: 164
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


Fly by Night Consultants<br /> <blockquote><font size="1" face="Verdana, Arial">quote:</font><hr><i>I climbed on the back of a giant albatross<br />which flew through a crack in the cloud<br />to a place where happiness reigned...<br />all year 'round<br />the music played ever so loudly!</i><p><a href="http://thomasfly.com/songs/Traffic/Hole_in_my_Shoe_qt.htm" target="_blank" rel="nofollow">Hole in My Shoe</a><hr></blockquote>
Sai Prasad
Ranch Hand

Joined: Feb 25, 2002
Posts: 560
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Remote Client ?