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:[EMAIL PROTECTED]
> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> Real programmers use Linux!
> 
> ---------------------------------------------------------------------
> 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