wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes database/server location Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "database/server location" Watch "database/server location" New topic
Author

database/server location

Bridget Kennedy
Ranch Hand

Joined: Nov 30, 2004
Posts: 84
I just re-read something in the spec that has me questioning an assumption I made regarding the database file and the server. The B&S "Network Approaches" section says that "the program must allow the user to specify the location of the database". I assumed this was only relevant to client/server mode. I added a dialog that prompts the client to input the data server address. I then use the address to perform an RMI lookup for the services.

As I'm reading again, I now wonder if the statement "it must also accept an indication that a local database is to be used, in which case, the networking must be bypassed entirely." is actually referring to the data file itself vs the database server. So I'm not sure if the spec is saying that that it must be possible - and GUI configurable - for the datafile, data server, and client to each be on a different machine.

Does anyone know if the standalone mode must allow for possible networked access to the database file? Along the same lines, does the server component need a GUI to allow the user to configure the location of the data file - be it local or remote?
Daniel Simpson
Ranch Hand

Joined: Sep 02, 2004
Posts: 181
Originally posted by Bridget Kennedy:
I just re-read something in the spec that has me questioning an assumption I made regarding the database file and the server. The B&S "Network Approaches" section says that "the program must allow the user to specify the location of the database". I assumed this was only relevant to client/server mode. I added a dialog that prompts the client to input the data server address. I then use the address to perform an RMI lookup for the services.

As I'm reading again, I now wonder if the statement "it must also accept an indication that a local database is to be used, in which case, the networking must be bypassed entirely." is actually referring to the data file itself vs the database server. So I'm not sure if the spec is saying that that it must be possible - and GUI configurable - for the datafile, data server, and client to each be on a different machine.

Does anyone know if the standalone mode must allow for possible networked access to the database file? Along the same lines, does the server component need a GUI to allow the user to configure the location of the data file - be it local or remote?


I think if you read your spec, it says that there must be no networking whatsoever during local (standalone). Here is how I interpreted it. I have to use flags when I run the app such as "alone" "server" or leave it blank. When I run standalone, a dialog box comes up allowing the user to configure the settings (select the database file on their computer) or use existing settings (if a configuration file exists). I haven't gotten to the networking part of the assignment, but I think when the user runs the client gui + client networking, it should allow the user to select probably the port and ip or whatever the needed parameters are, based on your implementation of either sockets or rmi. Hope that helps!


SCJP 1.4<br />SCJD 1.4
Bridget Kennedy
Ranch Hand

Joined: Nov 30, 2004
Posts: 84
My spec does say that 'networking must be entirely bypassed in the non-networking mode.' Based on that line, it seems safe to infer, at least in standalone mode, that the data file, database code, and client GUI are all located on the same machine.

But I'm still not sure about networked mode. I guess it boils down to the question: Do we need to allow for the possibility that the data file, data access server, and client are on three separate machines? And, if so, provide a configuration GUI?
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

Hi Bridget,

Do we need to allow for the possibility that the data file, data access server, and client are on three separate machines? And, if so, provide a configuration GUI?


That would require the creation of two servers on your part, which is getting way beyond the requirements of this assignment.

Assume that the data file is "locally accessible" to your server application.

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
John Woo
Greenhorn

Joined: Dec 19, 2004
Posts: 1
Hi All,

I just started working on my assignment. I have had a similar question on this. The spec says:
"...., the program must allow the user to specify the location of the database, and it must also accept an indication that a local database is to be used, ....".
Does it mean when users start the program as networked client mode (no mode flag), they can switch to alone mode by changing the database indication to local, or they can switch to networked client mode from alone mode by changing the indication from local to remote? Can user change mode after program is started?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: database/server location
 
Similar Threads
NX: (HTL) FileChannel & Threads
NX: A confusion about specifying the location of the database file
Some Ambiguity
Don't understand mode flag
2 tier architecture