aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLyBird database location Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "URLyBird database location" Watch "URLyBird database location" New topic
Author

URLyBird database location

K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2503
    
    8

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


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5 OCPBCD5
Jeffry Kristianto Yanuar
Ranch Hand

Joined: Oct 01, 2007
Posts: 759
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: URLyBird database location