This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hello All, When the "server" mode is selected ,the server is started and its properties are stored in suncertify.properties. How does the client know about the service the RMI service is providing except that it knows only about the server name?.
remote_data is the reference to the Remote Implementation of Data Class.
Now when no mode is selected, the network client and gui has to run. I provide a single textbox to type in the server URL. I am confused a little here, the client types in only the Server URL (//localhost:4100) and he does not know the service name of the remote data. Do we have to list the service name so that the client can choose or am i missing something here?.
While it will be good if you list the available services or some sort of that, you would be deviating out of the scope of the assignment. I have just assumed that the client is aware of the service name that the server is running on. (The service name should be saved at the client's properties file as well)
SCJP 1.6, SCJD, SCWCD, SCBCD.
Be nice to people on the way up cos, you'll need 'em on your way down - From somewhere I can't remember!
Look at the RMI registry. You must start the RMI registry at the server, and populate it with a Remote object. The client can then access the Registry and retrieve a stub to call.
I think that answers your question.
Joined: Jul 08, 2005
Hi Ram and Bob, Thx for your responses.In the server side, I create the registry using LocateRegistry.createRegistry(port) and then i rebind the remote data interface with the port. Probably i might have to list the services so that the user is aware of the services provided by the server.