• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

URLyBird database location

 
Bartender
Posts: 3648
16
Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
  • 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
  • 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)
 
I promise I will be the best, most loyal friend ever! All for this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic