Hello, I want to take the SCJD exam and am trying to get an idea about the assignment before I download the same. Could anyone please let me know if there will be 2 versions of the db.db file ,one for the local mode and other for the networked mode. Thanks in advance. Regards, Kavitha
Karthik Guru
Ranch Hand
Joined: Mar 06, 2001
Posts: 1209
posted
0
Originally posted by Kavitha KG: if there will be 2 versions of the db.db file ,one for the local mode and other for the networked mode.
i think you can safely assume that.
Kavitha KG
Greenhorn
Joined: Mar 18, 2002
Posts: 4
posted
0
Thanks for the reply. Does this mean that local and remote mode operation are independent of each other ? regards, Kavitha
Karthik Guru
Ranch Hand
Joined: Mar 06, 2001
Posts: 1209
posted
0
Originally posted by Kavitha KG: Does this mean that local and remote mode operation are independent of each other ?
Yes as i said document these as assumptions. It's perfectly acceptable! They are not big issues. I believe Sun is looking for a neat design. Try using lots of design patterns and stuff like that. for-eg , i just learnt about the RMI Connection Manager implementing java.rmi.server.Unreferenced from one of the discussions here. I did'nt know about it when i did SCJD but now i find this to be a neat thing. Stuff like that increases your chances of getting a good score. Most of the people lose points on GUI ( so did i :-)) try using a neat pattern on the GUI side as well. good luck, karthik
Sri Addanki
Ranch Hand
Joined: Apr 27, 2001
Posts: 195
posted
0
Originally posted by karthik Guru:
Yes as i said document these as assumptions. It's perfectly acceptable! They are not big issues. I believe Sun is looking for a neat design. Try using lots of design patterns and stuff like that. for-eg , i just learnt about the RMI Connection Manager implementing java.rmi.server.Unreferenced from one of the discussions here. I did'nt know about it when i did SCJD but now i find this to be a neat thing. Stuff like that increases your chances of getting a good score. Most of the people lose points on GUI ( so did i :-)) try using a neat pattern on the GUI side as well. good luck, karthik
Hi Karthik, i know abt java.rmi.server.codebase , but whats this java.rmi.server.Unreferenced all about? Thanks, Sri
Michael Morris
Ranch Hand
Joined: Jan 30, 2002
Posts: 3451
posted
0
Hi Sri, See the topic titled "Connection Manager" on this forum.
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Kavitha KG
Greenhorn
Joined: Mar 18, 2002
Posts: 4
posted
0
Hi Karthik, Thanks for ur reply and tips. If there are 2 copies of the db.db file and local mode of operation is independent of the remote mode then, this means that there is no need to synchronize the two? I am not sure if I am thinking right, could you please explain to me about this. I guess I may be asking something that is already been posted, I am a new member for this forum and my apologies for it. Any more suggestions most welcome. regards, Kvitha
Karthik Guru
Ranch Hand
Joined: Mar 06, 2001
Posts: 1209
posted
0
hello kavitha,
Originally posted by Kavitha KG: If there are 2 copies of the db.db file and local mode of operation is independent of the remote mode then, this means that there is no need to synchronize the two?
You can *safely* assume that. When in remote mode, let the server run in a separate JVM. Allow clients to connect to it. Even if the client is in the same machine as the Remote server, use a separate JVM to connect to it. In case of local mode assume one client talking to a single db.db file. Remote and local modes are independent. *Document* such things in your design justification document. They are "perfectly" acceptable to SUN. I reiterate concentrate on issues like client identification, How to de-couple the GUI from the code that handles database updates, reads etc. Basically a better design.