• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

specify db file on the server or the client?

 
Arun J Kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Arun,
Here is an excerpt from my Readme.txt file describing how to start server and client:

Hope this helps,
Michael Morris
[ August 02, 2002: Message edited by: Michael Morris ]
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

That "other design" that you describe is what I did in my submission. However, what you have right now is fine, too. As far as I know, people passed without providing the functionality to serve multiple databases.
Eugene.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic