When you say "change a static XML file", is the last modification date of the file on disk updated to a more recent date? Just saying this because that's the mechanism used for detection. If you had, say, a version control system updating a file with an older date, chances are the detection wouldn't work (which is incidentally why Subversion doesn't do that, which I am not very happy with for other reasons).

This said, if your last modification date is updated, it should work. If it doesn't, can you try adding:

  <cache-control><use-local-cache>false</...></...>

to your config, and see what happens?

BTW, caching of the File serializer was broken pre-2.6 in some situations, but it was fixed for 2.6 if I believe the CVS logs.

-Erik

Jos Vos wrote:
Hi,

When I change a static XML file, it is not read again when referenced.
After digging into a problem I thought I had with a pipeline not being
executed (as info from a static file was not updated), I included a
debug step in that pipeline:

  <!-- debug -->
  <p:processor name="oxf:file-serializer">
    <p:input name="config">
      <config><directory>/tmp</directory><file>debug2x.xml</file></config>
    </p:input>
    <p:input name="data" href="params/ident.xml"/>
  </p:processor>

To my surprise, the file /tmp/debug2x.xml contained the old contents
of params/ident.xml and this situation stayed the same after several
tries, until I restarted Tomcat, after which the file was read correctly.

What is going on here?

Thanks,


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to