d) Load the config files into an XML database (Apache Xindice) manipulate with 
a UI/wizzard to your heart's content, verify the structure against an xsd, 
flush it to the original filename.  The benefit of using an xml database as 
opposed to just reading/writing the original file is that you're able to make 
the changes in a transaction manner.  For instance changing the http port, you 
can change url.properties and ofbiz-containers simultaneously.

----- Original Message ----
From: Jacopo Cappellato <[EMAIL PROTECTED]>
To: dev@ofbiz.apache.org
Sent: Friday, December 14, 2007 11:08:01 PM
Subject: Re: OfBiz System Configuration Wizard


I think that system settings should stay in config files, not in the 
database; if the goal is to simplify the configuration steps described 
in the production setup guide, then there are probably different ways
 of 
addressing this:

a) deliver a separate set of config files already configured for a 
"standard" production (cache enabled, verbose logs disabled etc...); we
 
may also consider to deliver these settings in the release branch, and 
maintain the dev settings in the trunk

b) implement an ant-based wizard (to be run during the installation of 
OFBiz) that prompts the user for some common settings (http port, https
 
port, mail server address, db used, db user/password, db url etc...)
 and 
then modify the OFBiz's files (or, we could prapare *one* simple file 
where the user can enter all these values, then run the ant script that
 
places then in all the relevant OFBiz files)

c) clean up the existing config files; for example, the
 entityengine,xml 
contains the settings for a lot of different databases; we could keep 
the settings for just one of them and move the others into a separate 
file, or create one file per database etc...

Of course, for more complex (real World) setups, you'll have to follow 
the steps of the production setup guide... but for simpler ones it
 could 
work.

just my 2 cents

Jacopo



Reply via email to