[
https://issues.apache.org/activemq/browse/SM-1705?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jon Brisbin updated SM-1705:
----------------------------
Attachment: always_reload.diff.txt
This patch adds an "always reload" attribute to the saxon:xslt, saxon:query,
and saxon:proxy elements. It blindly reloads the resource every time and
doesn't check modification times so that it will work in all circumstances and
with all protocols.
> Make Resources in ServiceMix-Saxon smart enough to reload themselves
> --------------------------------------------------------------------
>
> Key: SM-1705
> URL: https://issues.apache.org/activemq/browse/SM-1705
> Project: ServiceMix
> Issue Type: New Feature
> Components: servicemix-saxon
> Affects Versions: servicemix-saxon-2008.01
> Reporter: Jon Brisbin
> Priority: Minor
> Attachments: always_reload.diff.txt
>
>
> It would be nice if the XSLT and XQuery resources inside the Saxon SE could
> monitor themselves for modifications and reload the Source when that event
> happens. This would work easily for file:/// resources (and classpath: for
> that matter, since Spring IO gives you the modification time of the jar file
> in which the resource lives), but other protocols would have to be fetched
> and hashed to tell if they've changed or not.
> I've implemented a simple patch against trunk that allows you to add a
> "reload" attribute to the saxon:xslt element that tells it to always reload
> the resource. This isn't ideal, but will work for all URL types that Resource
> handles. Anything more smart would have to be multi-threaded, like a File
> watcher.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.