This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Local and Networked mode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Local and Networked mode" Watch "Local and Networked mode" New topic
Author

Local and Networked mode

Kavitha KG
Greenhorn

Joined: Mar 18, 2002
Posts: 4
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
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
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
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
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
Hi Sri,
See the topic titled "Connection Manager" on this forum.

Michael Morris
SCJP


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
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
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.
Kavitha KG
Greenhorn

Joined: Mar 18, 2002
Posts: 4
Hi,
Thanks for ur reply.
regards,
kavitha
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Local and Networked mode