• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issues while writing the RMI Server

 
Rahul Sri2K3377
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
Has anybody written the server, or at least thought of how to write it, then please help me with the following issues:-
1.) This is very clear that all the public methods of Data.java will form the interface for the server, but, what about the two constructor of Data.java. Do you write two more methods for implementing its constructor??
2.) How will you implement the interface (containing all the public methods of Data.java) in the server. Is it going to be a simple call to the actual method in Data.java??
3.) Where will you store the instance of Data class, as any member var. defined in server class will be shared among diff clients. So, if one client says close() on Data class while other client invokes add() on the Data class, what will happen??.
Actually all these questions are interrelated. My basic question is how to use Data.java to write the RMIServer??.
Rahul Sri.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic