• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RMI

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

reply
    Bookmark Topic Watch Topic
  • New Topic