lenya-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florent André <florent.andre-...@4sengines.com>
Subject Re: after editing cocoon.xconf result stays the same
Date Tue, 05 Jan 2010 09:15:02 GMT
On Mon, 4 Jan 2010 19:46:25 +0200, Gintare Ragaisiene
<gintare.ragaisiene@gmail.com> wrote:
> Is there a way to reload cocoon.xconf without server engine restart?

I had a look on it some times ago, and I find this [1] (but don't try) : 

- modify this conf : 
<init-param>  
<param-name>allow-reload</param-name>  
<param-value>true</param-value> 
</init-param> 

- then type this url :
<URL>?cocoon-reload=true fonctionne

But be careful, 
- this can be a security issue
- some objects not handled by Avalon could be not reinitialized

[1] in french :
http://markmail.org/message/enssgylel2hnpqx4#query:+page:1+mid:cvd5qai554hrdk6q+state:results

++
> 
> 
> 
> On Mon, Jan 4, 2010 at 5:30 PM, Richard Frovarp <rfrovarp@apache.org>
> wrote:
> 
>> On 1/4/2010 2:02 AM, Gintare Ragaisiene wrote:
>>
>>> Hi,
>>>
>>>    I have usecase added to my Lenya 2.0, it works good. Then I do
>>> following:
>>>
>>> 1) edit $LENYA_HOME/build/lenya/webapp/WEB-INF/cocoon.xconf and delete
>>> usecase component-instance:
>>>
>>> ...
>>>
>>> <usecases>
>>>
>>> ...
>>>
>>> <!-- deleted -->
>>> <!--<component-instance
>>> class="org.apache.lenya.cms.editors.ginnewsgroup.Banners"
>>> logger="lenya.site.ginnewsgroup" name="ginnewsgroup.banners">
>>> <view
>>> customFlow="fallback://lenya/modules/ginnewsgroup/flow/bannersFlow.js"
>>>
uri="modules/ginnewsgroup/usecases/banners_dynamicrepeater_template.xml"/>
>>> <event id="edit"/>
>>> </component-instance>-->
>>>
>>> </usecases>
>>>
>>> ...
>>>
>>>   2) not do server restart
>>>
>>
>> You need to do a server restart.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>>
>>

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


Mime
View raw message