Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Indication that a local database is to be used ?

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
It is specified in my documents that : "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"
I considered that the indication "that a local database has to be used" is
using of the "alone" mode flag when starting the application.
Do you think that I break the MUST rule here ?
Should I have a configuration GUI where the user can be able to switch
between local/remote mode ? Then why do we have separate flags
for starting the remote/local client ?
I somebody that used this approach and passed the exam ?
Many thanks,
Liviu
 
Bartender
Posts: 3648
16
Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Think about it. If we need to use flags to indicate which mode to run (alone or network), why would you want to allow users to switch mode while running the app? Besides stand-alone and network client setup requires different things. Stand-alone just need local database path. Network mode needs server IP and port but not the database path (cos user doesn't care whether the database file is located on the server side).

Hope this helps.
 
Liviu Carausu
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

K. Tsang wrote:Think about it. If we need to use flags to indicate which mode to run (alone or network), why would you want to allow users to switch mode while running the app? Besides stand-alone and network client setup requires different things. Stand-alone just need local database path. Network mode needs server IP and port but not the database path (cos user doesn't care whether the database file is located on the server side).
Hope this helps.


I can imagine a config view where, depending on the user selection, the contents of the local configuration view can be exchanged with the contents of the network configuration view and viceversa.
The config view can be started in a default mode given by the start parameter "alone" or empty - (remote).
I do not know if it is worth the effort. Some people are interpreting like this the must sentence. I personally do not find it useful but I do not want to mess around with the "must" sentences.
Thanks,
Liviu
 
K. Tsang
Bartender
Posts: 3648
16
Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok that sentence with the must... I interpret it like this: The instructions clearly states you must allow the user to select the database path.

For stand-alone mode: choose database when starting app (file on same computer simple)
For remote mode: choose database when starting server; client input server IP and port to connect to already selected database on server

So as long as you do that you have satisfied the requirements regarding choosing database path.
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Liviu,

I think the instruction is a bit stupid, because when you start the application you have to add "alone" as argument or nothing. When you pass "alone" you indicate that you want to use a local database.

So when my application is started with "alone" as argument, a dialog is displayed with just the possibility to choose (or enter) the database file. when app started with no argument, dialog is shown where user has to enter address and port of the server.

so no option to indicate local db to be used or not, also no switching between a networked client or a standalone one

Kind regards,
Roel
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic