Re: after editing cocoon.xconf result stays the same

Florent André <[email protected]>
Newsgroups gmane.comp.cms.lenya.user
Message-ID <[email protected]>
On Mon, 4 Jan 2010 19:46:25 +0200, Gintare Ragaisiene
<[email protected]> 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 <[email protected]>
> 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: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.