Perez Guerrero, Antonio Javier wrote:
> Hi Robin,
>
> I found that using RunningModeHelper.determineRunningMode(null) does the
> same thing :)
>
> My problem now is that my Settings object:
> new MutableSettings(runningMode)
> has an empty property list, instead of containing all my spring managed
> properties (defined in
> WEB-INF/cocoon/properties/[runningMode]/*.properties)
I usually don't put anything into WEB-INF/cocoon, but that last time
when I tried, it was broken.
Try putting your properties into META-INF/cocoon/properties/*.properties
and make sure that those files are available on the classpath.
>
> I've tried with your approach:
> (Settings) WebAppContextUtils.getCurrentWebApplicationContext().
> getBean(Settings.ROLE)
> , and now I get some system properties, but still don't get my custom
> properties.
>
> I've just noticed that "The properties defined in these property files
> are only used for overriding bean configurations! These values are not
> available through the settings object" [1],
Note that this paragraph refers to properties in
[META-INF|WEB-INF]/cocoon/spring/*.properties
^^^^^^
HTH
--
Reinhard Pötz Managing Director, {Indoqa} GmbH
http://www.indoqa.com/en/people/reinhard.poetz/
Member of the Apache Software Foundation
Apache Cocoon Committer, PMC member [EMAIL PROTECTED]
________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]