Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger

Multiple RMI Servers problem --- Urgent

Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,

Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
this is supposed to be a surprise, but it smells like a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!