How to load complex external configurations at a RCP application? [message #487348] |
Tue, 22 September 2009 20:01 |
Heiko Ahlig Messages: 62 Registered: July 2009 |
Member |
|
|
Hi,
for a complex application, I have to load a complex configuration, which
is stored in external files.
Why external configuration:
On one side is it easier to change some configuration properties without
changeing code and recompile.
On the other side these files , are stored on a network drive, that all
user use the same external configuration.
Why complex:
Different modules (features) needs configurations.
Examples are:
- connection configurations for different connection types (DBs,
AppServers) and also than different target hosts/services.
- properties for a searchsystem, which allows to define search and
result fields for various Pojos and whith this build a dynamic search system
My first approach was define one xml schema and file for every config an
than load it as dom document and loop through this document to read all
and save it in
configuration Pojos.
The second one was, to take all in an sqllite db and read all things
with eclipselink.
My last one was try different "configuration frameworks" like
http://jfig.sourceforge.net/ and http://commons.apache.org/configuration/
But all this approaches aren't real good solutions in my opinion (at the
moment), but I also don't know, how I can solve this.
Has already had have someone a similar problem and how you solved it?
Greetings
Heiko
|
|
|
Powered by
FUDForum. Page generated in 0.02934 seconds