• Post Reply Bookmark Topic Watch Topic
  • New Topic

rmi problem

 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,
i have to develop a chat server in rmi. now my problem is if i instantiates the server and binds the object with rmiregistry(only one instance), can this one instance serve more than one client at a time.
Please ask if my question is not clear.
 
David Duran
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RMI servers are threaded applications so you have to make sure your RMI server is thread safe.
To answer your question, yes the RMI server can serve more than one client at a time.
 
Javan Li
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David, So there are not thread problems like socket when i develope a rmi application?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!