Before I submit my solution I have a question:
"Network Approaches
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." 1.) Means user
the user, who starts the RMI - server? This means the RMI - server choose the location of the database.
2.) Or means user the network client? Then the network client choose the location of the database. But there is only one database file. And in a few month this application will be a web application.
In my solution only the RMI - server can choose the location of the database - file and not the network client. But the sentence "indication that a local database is to be used" is confusing me absolutely. The user has the opportunity to give in the console:
java -jar <path_and_filename> [<mode>] (server, alone or left out entirely).
(Hint. In the standalone mode the user has allso the opportunity to choose the location of the database - file.)
Regards
Manuel
[ January 14, 2007: Message edited by: Manuel Arnoldi ]