Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data Client

 
Jeff Song
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the insturction said that
you should create a client program. This implementation should include a class that implements the same public methods as the suncertify.db.Data class.
in server-side, I depoly the db package and the server class which manipulates the Data class(inlcuding DataInfo, FieldInfo). In client-side, I depoly UI class and client class which connect to server and invoke the method of remote object.
But in local mode, How should I depoly the package in client-side? Should I deploy the db package on client? if I need to create a class which implement the same public method of Data class, is it need to put Data class on client?
Maybe it is wrong of my understanding. Is it means I should create a class which can either connect to server or manipulate the db.db throught Data class in local.
pls answer me, Thanks!
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it means I should create a class which can either connect to server or manipulate the db.db throught Data class in local.

Sort of basically yes.
In local mode the client has an instance of the DataClass directly, no connecting to a server. So you will have to have two classes one for Local and one for Remote, in each case they have an instance of Data class within them.
There will never be a time when one client is in local and another client is in remote accessing the same db.db/Data files.
Mark
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually think of it as the difference between single user programs and multi-user programs.
local is single user, remote is multi-user.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic