Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Data Client

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic