Thanks for your reply. Yes the unit tests are helpful.
Could you pl explian how configuration keys and values
map to tables and columns?

As an example, if I have a configuration "foo.bar" in a property file,
its expressed as

   foo.bar: Value

and its accessed as getString("foo.bar").

Now if I have my configuration in a database table T with
columns K and V such that

     T :: K -> V

(column V is keyed by K), with one row (say, "1" -> "A")

would Configuration.getString("1") yield "A"?

Is this the right way to model configuration in the database?

Regards

/U


Original message ----------------------
From: Oliver Heger <[EMAIL PROTECTED]>
> [EMAIL PROTECTED] wrote:
> > I am looking for sample usage of JDBC configuration sources with
> > commons-configuration. The user guide does not have an example.
> > In particular I 'd like to know:
> >    a) how to point commons-config to the JDBC data source
> >    b) how to identify to commons config the name of the 
> >         table and the column containing the configuration data
> > 
> > Any help immensely appreciated!
> > 
> > TIA,
> > 
> > /U
> > 
> 
> 
> There are no concrete examples I am aware of. Maybe the unit tests [1] 
> are helpful?
> 
> Oliver
> 
> [1] 
> http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/test
> /org/apache/commons/configuration/TestDatabaseConfiguration.java?view=markup
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to