• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configuration Properties help

 
Stephen Patrick
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

In my implementation I allow the user to modify the hostname and port through the GUI for the server, when changed the changes are persisted in the suncertify.properties and requires a restart of the app for the new connection to be initiated, if running in server mode. I do not provide any means to allow the path to the data file to be modified it is static. Do I need to allow for this path to be changed in local model. Is it ok having the db file to always be located in the current working dir.

Any suggestions

Thanks
 
Charlie Goth
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I let them edit it (in server and alone modes), what harm can it do?

Charlie
 
Satish Avadhanam
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Stephen Patrick:
Hi

Is it ok having the db file to always be located in the current working dir.

Any suggestions

Thanks


You must provide a way to select db file either in local mode or server mode. As far as my instructions, it is a requirement. Please check your instructions. It should be like "You must provide a way to select the location db file..." or something near to that.

Good Luck, Satish.
 
Stephen Patrick
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Charlie, Satish

Ok my instructions has the following that I can see relating to configuration settings:

B]Network Approaches
Your choice of RMI or serialized objects will not affect your grade, but no other approach is acceptable. In either case, the program must allow the user to specify the location of the database, and it must also accept an indication that a local database is to be used, in which case, the networking must be bypassed entirely. No authentication is required for database access.
[/B]


I take this as meaning if in server mode using either sockets or rmi the user must allow the user to specify the database location, meaning host address and port. It says nothing about configuration of the database in local model which implies the only configuration is the server. I kind of think this makes sense as how would the user using the client GUI now the file system of the server it is using. Also my package structure requires
the db file to be in the package root.

But as you say what harm can it do.
[ July 11, 2004: Message edited by: Stephen Patrick ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic