Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

database/server location

 
Bridget Kennedy
Ranch Hand
Posts: 86
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 181
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Bridget Kennedy
Ranch Hand
Posts: 86
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 11833
181
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
John Woo
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic