wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes App Config 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 "App Config" Watch "App Config" New topic
Author

App Config

Julio Cesar Marques
Ranch Hand

Joined: Mar 21, 2009
Posts: 66
Hi Guys!

I have one question about Setup Environment. How i set server IP in case client/server mode or path to .db file in standalone case? Remember what say in instructions.html file: "You must not require manual editing of any files by the examiners".

Sorry about my english again!


Julio Cesar Lopes Marques
Sun Certified Java Developer 5, Sun Certified Java Programmer 5
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

Fala ai Julio!

Partner, please take a look here. I think it might be helpful!


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Julio Cesar Marques
Ranch Hand

Joined: Mar 21, 2009
Posts: 66
Beleza!
If i understood, i'll splash screens asking for path, IP and port. It sounds good, but a question about automatic failure has freaking me out a litle bit. About suncert.properties what configuration wich have to exist in this file?

Thanks!

PS. "wich have to exist" this is correct?
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2258
    
    3

"Which configuration has to exist in this file"

This is something that you can decide. You can store all parameters you find necessary. In my case, here's the deal: when the application starts in standalone mode, I ask for the database location; when the application starts in server mode, I ask for the database location and the port number in which the server will run; and when the application starts in client mode, I just ask for the server IP address. So, for instance, the first time the application starts in standalone mode, the database location field in the dialog is empty, then the user provides the database location and this value is stored in the suncertify.properties file. The next time the application is started in standalone mode, the database location field in the dialog is filled with the value stored in the suncertify.properties file.
Julio Cesar Marques
Ranch Hand

Joined: Mar 21, 2009
Posts: 66
Sure! Now I can define the business logic more clearly!

Many Thanks! (for while)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: App Config
 
Similar Threads
saving the excel file is a specific location
How to open a local file in Java program
Data Locking with a DB File.
Transaction
User Documentation