aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Data Client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Data Client" Watch "Data Client" New topic
Author

Data Client

Jeff Song
Greenhorn

Joined: Nov 05, 2002
Posts: 27
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

Joined: Feb 05, 2001
Posts: 17260
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

Actually think of it as the difference between single user programs and multi-user programs.
local is single user, remote is multi-user.
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Data Client