commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Heger <oliver.he...@oliver-heger.de>
Subject Re: [Configuration] J2EE file mapping
Date Wed, 02 May 2007 19:54:36 GMT
daune.jf@daune-consult.com wrote:
> Hi,
> 
> I would like to use DefaultConfigurationBuilder in a servlet, but it 
> cannot properly handle a property file, as <properties/> only has 
> 'fileName' tag.
> 
> There is no way to pass it a URL instead.
> 
> Any idea about this?
> 
> Cheers,
> 
> J-F
> 
> 
The fileName attribute should also accept full path names and URLs. The 
internal mechanism for locating configuration files checks for all these 
possibilities.

BTW: the attributes are directly mapped to properties (i.e. setXXX 
methods) of the configuration classes to be created. So you could also 
use other properties available in PropertiesConfiguration or its base 
classes.

Oliver

---------------------------------------------------------------------
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