• 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

URLyBird database location

 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all, I got URLyBird 1.3.1 and I noticed the specs mentioned under Server Network Approach section :


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.



Exactly what does it mean by "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"?

Do I give it a default location for which the local database is referred to (eg standalone no-networking mode)? Or something else?

K. SCJP5
 
Ranch Hand
Posts: 759
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by K. Tsang:



Exactly what does it mean by "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"?

Do I give it a default location for which the local database is referred to (eg standalone no-networking mode)? Or something else?

K. SCJP5



When you use the application in stand-alone mode, you should give the input to open the database by using open dialog, maybe using JMenu or JButton. Regarding the indication, maybe you can set the JFrame title to "Stand-Alone Mode"

in a client-networked mode, you should give the input to specify the server address and the port. and the JFrame title is "Networked-client" mode.

Please consider the other's opinion before applying my solution.

Good Luck !!!


Jeffry Kristianto Yanuar (Java Instructor)
SCJP 5.0, SCJA, SCJD (UrlyBird 1.3.2)
 
reply
    Bookmark Topic Watch Topic
  • New Topic