• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B & S - Spec Questions on Network Approaches

 
John Lam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In the spec of the B & S, it mentions:
Network Approaches
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.

1. Does it mean the program must provide an interface (graphical one) for the user to enter the location of the database?

2. Does the interface show up to ask the question when the server or client is started up?

3. In case when the client started up with the command "java -jar <path_and_filename> alone" or "java -jar <path_and_filename>", will the interface ask for a local path for the db file?

4. What does "it must also accept an indication that a local database is to be used" implies in terms of implementation for the interface or program?

Target Platform and Execution
The mode flag must be either "server", indicating the server program must run, "alone", indicating standalone mode, or left out entirely, in which case the network client and gui must run.

1. Does "java -jar <path_and_filename> alone" and "java -jar <path_and_filename>" mean the SAME thing for local client mode?

Thanks.
J.

[ March 14, 2006: Message edited by: John Lam ]
[ March 14, 2006: Message edited by: John Lam ]
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi john,

here are my thoughts...

(1) i did one, and so did most of the people here (afaik). a little gui which asks for the location of the data file...

(2) in both cases i'd say.

(3) yep

(4) this refers to the command-line switch. the 3 different switch options result in 3 slightly different startup-procedures. but hey, that's obvious: the server needs to specify its file and to be able to be started and stopped, the client needs to find its server, and the standalone mode needs to specify the data file as well.

(5) no, they dont. "no switch" is client mode, "alone" is standalone mode

don't worry, it's really not complicated. just try to get things sorted in your head, and don't hesitate posting further questions...

regards,
jan
 
Xiao Di
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(3) When you use "java -jar <path_and_filename>" to start client in network mode, the client does not need to know anything about db file.
 
John Lam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

The answers help me to understand the confusing part of the spec from my own perspective.

Thanks for all your time.

Regards,
John
[ March 14, 2006: Message edited by: John Lam ]
 
Jan Groth
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
(3) no, but about the server-ip.

sorry for putting this together, i took the question rather like "do i need a gui in this case?"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic