• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Another advice... on the instructions.html document

 
Yanick Labelle
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a text from the instructions.html document:

"Your choice of RMI or serialized objects will not affect your grade, but no other approach is acceptable. In either case, 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, in which case, the networking must be bypassed entirely. No authentication is required for database access."

I just wanted to be sure... Here is what my application do:

A standalone client which is started with java -jar runme.jar alone...
The standalone client asks for the path/name of the data file on the
local computer and starts the application.

A network client which is started with java -jar runme.jar...
The network client asks for the IP or host name of the server and the port... (no local file here)


what is this thing about "it must also accept an indication that a local database is to be used". Am I supposed to also ask for a local database in
network mode? Or provide a choice in the user interface for the local or
network mode, because it is strictly controled by the startup argument
alone/server/<nothing...>

Any advice?
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Yanick,

what is this thing about "it must also accept an indication that a local database is to be used".


You are already meeting this requirement

According to what you wrote above, if the user starts with "java -jar runme.ar alone" then you request the path/name of the data file. Or in other words, by putting the "alone" keyword, you have given an indication that a local database is to be used - which you then ask for.

Regards, Andrew
 
Yanick Labelle
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the response, at this points, I have a tendency to panic very easily... I just wanted to be sure about it... Not that I can do something about it now, I have already submitted my jar file!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic