• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Who specifies database file location in networked mode?

 
Andrew Keidel
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all,
Quick question: Who specifies the database file location in networked mode? My assignment says:
"In either case [RMI or serialization], the program must allow the user to specify the location of the database"
The term "user" is a bit ambiguous. Does this mean the client, or could it mean the user who starts the server. My opinion is that in networked mode, the client should not be able to specify the location of the database file(s), since this is server-specific information.
But if the grader expects to be able to specify this on the client side, I don't want annoy the grader.
Thoughts?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The server, or the person who starts the server. In my case the db.db file resided in the same directory as the server.jar, so I just start up the server, and it has code that knows that the db.db file is there. Otherwise you can take an argument in the starting of the server to give the location.
So the User is the runner of the Server.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic