• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Local and Networked mode

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply.
Does this mean that local and remote mode operation are independent of each other ?
regards,
Kavitha
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sri,
See the topic titled "Connection Manager" on this forum.

Michael Morris
SCJP
 
Kavitha KG
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks for ur reply.
regards,
kavitha
 
reply
    Bookmark Topic Watch Topic
  • New Topic