wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI 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 "RMI" Watch "RMI" New topic
Author

RMI

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Dear All,
I have completed most of FBN but I am stuck at this point.
I am planning to use RMI for networked mode but do not how to take care of multiple clients asking to reserve a seat. Do I have to spawn a new thread if a new client connects. If so, then can anyone tell me how do I do that.
Thanks in Advance,
Palkhi.
Ashwin
Greenhorn

Joined: May 25, 2000
Posts: 8
Hi,
RMI will take care of creation of threads to support multiple clients. But, you will have to ensure that your code is thread safe.
Ashwin.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Thanks Ashwin for a prompt reply.
Also, could you answer one more query.
How do I test my application in networked mode. Do I need many machines and try to connect to the server or I can do it on one machine itself.
Thanks,
Palkhi.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
For networking mode you can also do it on the same machine.
Start the rmi server.
Start the client on the same host passing 'localhost' as machine name ,the port number and the server name.
If everything(codebase etc setting) is OK, the client would connect. But, this is kind of an ideal network situation where info flows really fast. If this is succesful. Try to start the server on a remote host and connect to it over the internet. Although you do not need to do this step just to test the functionality.
Hope this helps.
Ashwin.
------------------------
Thanks Ashwin for a prompt reply.
Also, could you answer one more query.
How do I test my application in networked mode. Do I need many machines and try to connect to the server or I can do it on one machine itself.
Thanks,
Palkhi.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI
 
Similar Threads
Trying RMI
Servlet as an rmi client
Some Advice
RMI -- rmic -- rmiregistry -- How to use In WSAD5
Passed with 387 (96%)