Hi Guys,
I am having hard time understading from the requirements as to in the network mode where ( client or server) would the user specify the location of the data base file (db.db).
In my current design it is done on the server as...
java -jar server.java <port#> <dbFile>
The server can only servs data from this particular db file for the life of the JVM.
Then, on the client, all the user has to specify is the host and port of the DB server ...
java -jar client.jar <DBserver-host> <port>
Am I thinking right? How have others implemented it?
The other design point could be that server does not bind to a particular database file, instead it waits for a client to connet and request which db file it wants to be served from. In this case, the db server needs to be capable of serving data from multiple db files, and potentially each db file to multiple clients.