specify db file on the server or the client?
posted 23 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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.
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.
posted 23 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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 ]
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 ]
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
posted 23 years ago
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.
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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.
| And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad: The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |









