You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Jeremy Quinn <je...@apache.org> on 2005/03/03 13:36:58 UTC
XMLFileModule issue with 2.1.7-dev
Hi All
There has been an issue with the XMLFileModule that still exists in
2.1.7-dev, it would be nice to clear before release.
eg.
<component-instance
class="org.apache.cocoon.components.modules.input.XMLFileModule"
logger="core.modules.xml"
name="myproject">
<file src="cocoon://myproject/configuration/project.xml"
reloadable="true"
cacheable="true"/>
</component-instance>
Regardless of the settings of @reloadable or @cacheable, the module
always requires that Cocoon be restarted to get changes in the files
activated in the sitemap.
Any ideas anyone?
Thanks
regards Jeremy
--------------------------------------------------------
If email from this address is not signed
IT IS NOT FROM ME
Always check the label, folks !!!!!
--------------------------------------------------------
Re: XMLFileModule issue with 2.1.7-dev
Posted by Antonio Gallardo <ag...@agssa.net>.
On Jue, 3 de Marzo de 2005, 8:32, Jeremy Quinn dijo:
> Thanks Bertrand, I'll try this.
Can you update the docs if needed?
Best Regards,
Antonio Gallardo.
>
> regards Jeremy
>
> On 3 Mar 2005, at 12:54, Bertrand Delacretaz wrote:
>
>> Le 3 mars 05, à 13:36, Jeremy Quinn a écrit :
>>
>>> ...Regardless of the settings of @reloadable or @cacheable, the
>>> module always requires that Cocoon be restarted to get changes in the
>>> files activated in the sitemap...
>>
>> I got it working with 2.1.6 as follows (XConfTask source excerpt),
>> including reloading. IIRC it is the documentation that is wrong, I
>> remember digging into the code to find out how this works.
>>
>> <component-instance
>>
>> class="org.apache.cocoon.components.modules.input.XMLFileModule"
>> logger="app.config.XmlConfig"
>> name="myConfig">
>> <reloadable>true</reloadable>
>> <cacheable>true</cacheable>
>> <file src="${some.property}"/>
>> </component-instance>
>>
>> -Bertrand
>>
> --------------------------------------------------------
>
> If email from this address is not signed
> IT IS NOT FROM ME
>
> Always check the label, folks !!!!!
> --------------------------------------------------------
>
>
Re: XMLFileModule issue with 2.1.7-dev
Posted by Jeremy Quinn <je...@apache.org>.
Thanks Bertrand, I'll try this.
regards Jeremy
On 3 Mar 2005, at 12:54, Bertrand Delacretaz wrote:
> Le 3 mars 05, à 13:36, Jeremy Quinn a écrit :
>
>> ...Regardless of the settings of @reloadable or @cacheable, the
>> module always requires that Cocoon be restarted to get changes in the
>> files activated in the sitemap...
>
> I got it working with 2.1.6 as follows (XConfTask source excerpt),
> including reloading. IIRC it is the documentation that is wrong, I
> remember digging into the code to find out how this works.
>
> <component-instance
>
> class="org.apache.cocoon.components.modules.input.XMLFileModule"
> logger="app.config.XmlConfig"
> name="myConfig">
> <reloadable>true</reloadable>
> <cacheable>true</cacheable>
> <file src="${some.property}"/>
> </component-instance>
>
> -Bertrand
>
--------------------------------------------------------
If email from this address is not signed
IT IS NOT FROM ME
Always check the label, folks !!!!!
--------------------------------------------------------
Re: XMLFileModule issue with 2.1.7-dev
Posted by Bertrand Delacretaz <bd...@apache.org>.
Le 3 mars 05, à 13:36, Jeremy Quinn a écrit :
> ...Regardless of the settings of @reloadable or @cacheable, the module
> always requires that Cocoon be restarted to get changes in the files
> activated in the sitemap...
I got it working with 2.1.6 as follows (XConfTask source excerpt),
including reloading. IIRC it is the documentation that is wrong, I
remember digging into the code to find out how this works.
<component-instance
class="org.apache.cocoon.components.modules.input.XMLFileModule"
logger="app.config.XmlConfig"
name="myConfig">
<reloadable>true</reloadable>
<cacheable>true</cacheable>
<file src="${some.property}"/>
</component-instance>
-Bertrand