*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLBirdy: RMI Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "URLBirdy: RMI Question" Watch "URLBirdy: RMI Question" New topic
Author

URLBirdy: RMI Question

vijay selvaganapathy
Greenhorn

Joined: Jul 08, 2005
Posts: 14
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?.


Your advice is greatly appreciated,

Regards,

VJ
Muthaiah Ramanathan
Ranch Hand

Joined: May 16, 2005
Posts: 102
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!
Bob Reeves
Ranch Hand

Joined: May 01, 2003
Posts: 64
Hi Vijay:

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.
vijay selvaganapathy
Greenhorn

Joined: Jul 08, 2005
Posts: 14
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.

Regards


VJ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URLBirdy: RMI Question
 
Similar Threads
What is Non-Networked Mode?
NX: (HTL) FileChannel & Threads
Accessing remote file?
on UI design :(
Stand alone criteria [B&S]