SCJP 1.4<br />SCJD 1.4
Originally posted by Daniel Simpson:
Hi, I had a question about a local adapter issue. I already made a remote adapter for networking, but I am having trouble with my local adapter. Since my local adapter does not use any sort of locking, I can't decide whether I should implement the DB interface or not. I could implement the DB interface and not implement the lock methods or I had another idea. I could use a HAS-A instance and have a Data object that calls all of the methods except the ones that need locking. Then I could just write a new method for update. My problem is, if I took this approach, I need access to things such as the Data class's variables. Is there any way to do this besides make an inner class?
[ December 20, 2004: Message edited by: Daniel Simpson ]
You may assume that at any moment, at most one program is accessing the database file; therefore your locking system only needs to be concerned with multiple concurrent clients of your server.
SCJP 1.4<br />SCJD 1.4
--------<br />Andy Zhu<br />scjp 1.4<br />scjd 1.4<br />SAS Certified Programmer 9.0
You may assume that at any moment, at most one program is accessing the database file; therefore your locking system only needs to be concerned with multiple concurrent clients of your server.
In my instruction, it says I can assume one and only one program access the physical file. It also REQUIRES the local client will have the same db server codes as networking one. It means except the rmi/socket codes, ...
Non-Networked Mode
...
Architecturally, this mode must use the database and GUI from the networked form, but must not use the network server code at all.
must not use the network server code at all
SCJP 1.4<br />SCJD 1.4
--------<br />Andy Zhu<br />scjp 1.4<br />scjd 1.4<br />SAS Certified Programmer 9.0
Originally posted by Daniel Simpson:
So if I understand you correctly, Andy, I have a DBAdapter which HAS-A Data object. My Data object implements the given DB interface. Am I correct in doing this? Here is my next question, though, my code for the book method roughly looks like this:
My question is, is this correct for networked mode? Shouldn't the server be calling these things and not the client via the book method? It's pretty late so I might not be thinking straight. Thanks for the help!
--------<br />Andy Zhu<br />scjp 1.4<br />scjd 1.4<br />SAS Certified Programmer 9.0
Originally posted by Andy Zhu:
Hey, Peter: like your post. so you use fat client? I used thin client and didn't notice this is at the edge of infringing instruction. But I think in this project, the thin-client vs thick-client just has several lines difference (I think Anton has mentioned this in one of his posts). However, from the view of the real world project design, what do you think of the strategy? I still lean on thin client.
The main architecture of the application must be a traditional client-server system. There are three key parts: the server-side data management system, the client-side GUI, and the network connection between the two.
Server
Required Interface
Your user interface should be designed with the expectation of future functionality enhancements, and it should establish a framework that will support this with minimal disruption to the users when this occurs.
quote:
--------------------------------------------------------------------------------
Your user interface should be designed with the expectation of future functionality enhancements, and it should establish a framework that will support this with minimal disruption to the users when this occurs.
--------------------------------------------------------------------------------
The thin client does not do this. Any enhancement to the capabilities of the client would require modifications be made to the server and possibly all existing clients.
With the fat client approach the server has all the functionality required to provide access to the data and thus an enhanced client can run concurrently with the older version of the client. I actually have several client programs that can access the same server. The maintenance and testing client allows all database actions, inuding locking a records and leaving it locked.
SCJP 1.2 Done<br />SCJD 1.4 (URLyBird 1.2.1) (In Progress)
crispy bacon. crispy tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|