Hi Eric,
Originally posted by Eric Kim:
1) Can all of these propertiese be saved in one property file suncertify.propertiese and have the following sample entries:
server_db_file = 'path/db1x2.db'
server_host = 203.159.0.1
server_port = 1099
network_server_host = 203.159.0.1
network_server_port = 1099
client_db_file = 'path/db1x2.db'
In another words, all of these mode share the same property file and read by starter class and assign value to different objects when they are created?
That's fine. If you wanted to you could consolidate down to these:
db_file = 'path/db1x2.db' --> used by standalone and server
server_host = 203.159.0.1 --> used by network client
server_port = 1099 --> used by server and network client
2) Can we just provide one UI to config these values in the starter class or we have to provide different UI for different mode in different modules?
You can use the same one.
3) Suppose one UI to config these properties is acceptable, and this UI is implemented in starter class, then do we have to open this UI every single time to let user confirm the setting, or we just need to provide one if suncertify.propertiese file is not available or contains invalid entry?
Every single time is one way to do it. Better is to open it if either the suncertify.properties file is not available, contains invalid entry, or the user indicates, say by picking File-> Edit properties, to edit the properties. The first way it easier to develop but the second way is considerably better for the user. I recommend the second way.
Regards, George
SCJP, SCJD, SCWCD, SCBCD