commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Moran Ben-David" <mo...@placebase.com>
Subject RE: [configuration] Converting between Configuration and Properties
Date Mon, 31 Jul 2006 13:35:51 GMT
One thing to keep in mind is that certain log4j features (e.g. smtp
appender) are not available in Log4J unless one initializes it with xml
rather than properties.


> -----Original Message-----
> From: Trevor Miller [mailto:ub3rg0th@gmail.com]
> Sent: Monday, July 31, 2006 6:32 AM
> To: Jakarta Commons Users List
> Subject: Re: [configuration] Converting between Configuration and
> Properties
> 
> Hi,
> 
> Thanks, that makes life a lot easier!
> 
> Regards,
> Trevor
> 
> On 7/31/06, Jörg Schaible <Joerg.Schaible@elsag-solutions.com> wrote:
> > Hi Trevor,
> >
> > Trevor Miller wrote on Monday, July 31, 2006 9:15 AM:
> >
> > > Hi All,
> > >
> > > Is there an easy way to convert between
> > > org.apache.commons.configuration.Configuration and
> > > java.util.Properties.
> > >
> > > Some systems, like log4j need a properties object while others like
> > > torque use a configuration object. I tried to create
> > > JavaPropertiesConfiguration which extends Properties and implements
> > > Configuration but that doesn't work since the getProperty method
> > > signatures in Configuration and Properties are different and thus
> > > conflict.
> > >
> > > I think one might have to write wrappers, has this been done?
> > >
> > > Any help would be greatly appreciated.
> >
> >
> http://jakarta.apache.org/commons/configuration/apidocs_1.2/org/apache/com
> mons/configuration/ConfigurationConverter.html
> >
> > I admit, it is often overlooked :)
> >
> > - Jörg
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-user-help@jakarta.apache.org
> >
> >
> 
> 
> --
> Real programmers use Linux!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message