File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX: Specify location of database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "NX: Specify location of database" Watch "NX: Specify location of database" New topic

NX: Specify location of database

Ta Ri Ki Sun
Ranch Hand

Joined: Mar 26, 2002
Posts: 442
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)

Joined: Jun 27, 2002
Posts: 4118
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

Java Regular Expressions
shan chen
Ranch Hand

Joined: Apr 09, 2003
Posts: 70
Please check the notes provided by a member passed the SCJD. He/she got full score for server.

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.

The message is at:
I agree. Here's the link:
subject: NX: Specify location of database
It's not a secret anymore!