Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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

Multiple RMI Servers problem --- Urgent

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to do some multiple clients testing.
The starting of the server is done within the application itself.
First, if I open a client window and within this the user starts the server say at port 1099.
Things go fine and the server starts without a hitch but if I open another client window and try to start the server , I get a connection refused exception.

I am getting a bit confused here if I am doing the things right.

From two different instances of the application, Is it right to start two different instances of the server ?
Or Should we have only one instance of the server for multiple clients ?
Can somebody clear my doubts ?
Much Appreciated,
Thanks,

 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I think the server is always one and there can be multiple clients. If there is multiple servers for multiple clients why have servers at all. we can mix server funtionality with the client itself going back to the old system of desktop single tier applciations.
The idea of client server system is having a central location for servers so that many clients can connect to them and servers can run independant of the client
please reply ifyou are not clear
Farouk
 
if you think brussel sprouts are yummy, you should try any other food. And this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic