• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

RMI

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Let me tell you a story about a man named Jed. He made this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic