Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLyBird database location

 
K. Tsang
Bartender
Posts: 3457
14
Android 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
 
Jeffry Kristianto Yanuar
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic