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

Issues while writing the RMI Server

 
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.
 
There is no greater crime than stealing somebody's best friend. I miss you tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic