Sorry for my late reply, I've been not able to try your suggestions until now.
I've moved the property files to META-INF/cocoon/properties/*, and now it works as expected. Thanks very much!!!!! In order to have the META-INF folder available on the tomcat classpath, I've had to put it inside WEB-INF/classes/META-INF. Is there an easier way to achieve it? Thanks again > -----Mensaje original----- > De: Reinhard Pötz [mailto:[EMAIL PROTECTED] > Enviado el: sábado, 11 de octubre de 2008 13:56 > Para: [email protected] > Asunto: Re: Cocoon Configuration API usage - how to get running mode? > > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
