aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes B&S Question on instructions 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 "B&S Question on instructions" Watch "B&S Question on instructions" New topic
Author

B&S Question on instructions

John Mattman
Ranch Hand

Joined: Feb 18, 2008
Posts: 45
Non-Networked Mode

The assignment instructions provided to me says:

"The operating mode is selected using the single command line argument that is permitted. Architecturally, this mode must use the database and GUI from the networked form, but must not use the network server code at all."

Could someone please explain me the sentence "this mode must use the database and GUI from the networked form, but must not use the network server code at all".
Thanks in advance.

Mattman
Mike Ottinger
Ranch Hand

Joined: Jan 11, 2002
Posts: 125
Hi Mattman,

This means that your application, when running in non-networked mode must connect to your database locally, not through an RMI or socket implementation. Maybe this will help; Think of a database class you've written to satisfy the provided interface Sun has given you. In networked mode, your GUI will interact with that class via RMI or sockets. In local mode, your GUI will directly instantiate the database class itself (or maybe a factory class working on behalf of your database class).

I hope this doesn't muddle things further


SCJP 1.4 SCJD 1.5
John Mattman
Ranch Hand

Joined: Feb 18, 2008
Posts: 45
Mike, Thank you for your reply. But still i could not interpret the wording networked form.

"this mode must use the database and GUI from the networked form"
Adrian Engler
Greenhorn

Joined: Sep 18, 2006
Posts: 29
Originally posted by John Mattman:
Mike, Thank you for your reply. But still i could not interpret the wording networked form.

"this mode must use the database and GUI from the networked form"


I would interpret it the following way: In local mode, the same code for the database and for the GUI must be used as in networking mode.

In other words, the places in the code where a distinction between local and networking mode is made should be minimized to the connection between GUI and database; apart from the communication between client GUI and database, the GUI and the database part should not care (or even know) about whether they are operating in local or networking mode.


SCJP 5.0 (93%), SCWCD (98%), SCJD (377/400), SCBCD (100%)
 
 
subject: B&S Question on instructions