wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes UB client DB connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "UB client DB connection" Watch "UB client DB connection" New topic
Author

UB client DB connection

K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2247
    
    7

Hi all, I'm starting the client UI and want to make sure my logic is correct. I'm thinking
1) when JFrame opens immediately pops up the DB chooser window (local or remote)
2) once selected/connected, user clicks away to search, create etc.

Now in the specs it mentions:
a) the user is able to choose the database location
b) All configuration must be done via a GUI, and must be persistent between runs of the program. Such configuration information must be stored in a file called suncertify.properties which must be located in the current working directory.

If local, the app runs as "standalone" from default (hard-coded) location? If remote, am I suppose to get the server's address/port etc from the properties file where the data file resides? Can user change the properties file's attributes? What other attributes are needed in the properties file? What format is the properties file in - XML or plain text?


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
christian combarel
Ranch Hand

Joined: Aug 04, 2007
Posts: 47
Hello,
I haven't started the GUI yet, but here is I consider to to :

All parameters like database location, server's address/port are read from the suncertify.properties file. Default values are provided but the user can overwrite them via the connection GUIs.
For the properties file, plain text format should be the best option, given the simple information to store.

Chris



-------------
Chris
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2247
    
    7

Thanks Chris for your input. Before I really start with the nitty gritty client/server, I need to play around with JTable and multithreading a bit. Then I will need to get down to business when the real design starts lol
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: UB client DB connection
 
Similar Threads
Don't understand mode flag
NX: Specify location of database
About the suncertify.properties file
[URLyBird] What are the persistent properties
db location