Hi the assignment states: "In either case (RMI or serialized objects), the program must allow the user to spezify the location of the database file and it must also accept an indication that a local database is to be used, in which case, the networking must be bypasses entirly."
Some questions: 1.) If I start in local mode then the user can select a local file fomr the file system. 2.) If I start the server then the "starter" of the server selects a file from the local (server) file system. The client can't now select a file for the database.
Are this two use cases ok? Or do i have to implement a selection mode for the client user?
Thx for advice Pascal
posted 12 years ago
You will find this subject covered multiple times in JavaRanch if you do a search.
Basically in local mode your user picks a file on the local machine.
In server mode your user selects a file on the server (for this project your local machine might actually be the server).
In network mode the client selects a host/port/server combination to connect to the server by RMI.
For testing you could create 2 folders on your PC each containing a copy of the database file. One folder called Remote and one called Local. Your server user selects the Remote file each time he/she connects and your local user selects the Local file. That should give you a better feel for the distinction between the two modes.
SCJP, SCJD, SCWCD.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads