• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Another advice... on the instructions.html document

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
I found a beautiful pie. And a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic