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.
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>
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.
Oh the stink of it! Smell my tiny ad!
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth