• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spec Clarification on Database location

 
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The requirement document says,
You may choose between using RMI, or using serialized objects over TCP socket connections, to implement the database network communication. Your choice here 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.
When they say "the program must allow the user to specify the location of the database", do I need to show a text field in a modal dialog along with radio buttons describe below to the user to enter the db file name?
When they say "and it must also accept an indication that a local database is to be used", do I need to throw a modal dialog with a radio button to select either remote or local?
Thanks a lot.
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Elsewhere, the instructions list permissible command line options. Have a look. You can, but do not have to use dialog boxes.
- Peter
 
Sai Prasad
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Peter,
Thanks for the reply. The spec does list the command line options including the db file name. Are you saying that I must let the user enter the db file name either by
1) text field in a dialog or
2) command line option.?
Right now, I don't pass any db file name from the client to the server when I ask for the data remote impl object. I intend to have a seperate method in the server to return me a specific remote impl object. May be passing the name to the server factory really behaves like a factory.
I need your comments.
Thanks again.
 
Peter den Haan
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Either 1) or 2) -- it's up to you.
- Peter
reply
    Bookmark Topic Watch Topic
  • New Topic