• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

specify db file on the server or the client?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic