Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: Specify location of database

 
Ta Ri Ki Sun
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
whether local or remote the program must allow the user to specify the location of the database.
for local I was thinking of the file chooser in my preferences/settings screen, but what about network ?
how do i specify location on another machine ?
PS , the new exam requires that the configuration be done via the GUI, no command line params, and obviously theres a GUI for the client and none for server, so I'm assuming its the client GUI that configures the connection and DB location details for the network server and DB server to use
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the sake of a consistant interface, local and remote, I would probably just us a simple dialog to let the user type in the relative path of the file. JMO,
M, author
The Sun Certified Java Developer Exam with J2SE 1.4
 
shan chen
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please check the notes provided by a member passed the SCJD. He/she got full score for server.

Shan,
I am afraid it is not the client business to know the db file location, or whatever information about the db file. Your server knows that and it is like private information for the server.
You dont want the client to locate the db file. You use RMI ( or a naming service ) to locate the server.
Good luck.
C.

The message is at:
http://www.coderanch.com/forums/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic