• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How many Objects of remoteData

 
Farouk Mohamed1
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I am using RMI and my question is for multithreaded access to the server. The design has a RemoteData class which extends Unicast and is the remote object having a pointer to Data Class.
Now when multiple threads look up to the RMIServer how many objects are returned. Is it the same copy of RemoteData returned or one for one thread.
I used a static counter on the Data class and RemoteData class and found when I started the server the counter was one always
Please reply
Farouk
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your post, it sounds like the Remote Access is what is registered. If that is so, all clients access the same class instance.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic