Hugh Sparks schrieb:

----- Original Message ----- From: "Steven Dolg" <[email protected]>
To: <[email protected]>
Sent: 2010-06-02 7:02
Subject: Re: [C3] Reloading the sitemap


Hugh Sparks schrieb:
Is there a way for a C3 webapp to notice and deal with
changes to sitemap.xmap? [...]

Steven Dolg replies:
AFAIK, Cocoon 3 does not support this directly.

I know the ReloadingClassloader can be used to take care of that.
However that might or might not be suitable for your situation and/or introduce other behaviour you may want or not... :-\

This may be an indelicate question, but has anything ever been written
about how to use the ReloadingClassloader for something other than
reloading classes? Like watching just one file...

I'm afraid I cannot answer that.

However I would guess that's rather far from the current use-cases and might even require some kind of callbacks and in turn (potentially) a dependency from your application to the ReloadingClassloader.

If you just want to watch the filesystem and be notified about changes there is the FilesystemAlterationMonitor (FAM) in http://commons.apache.org/jci/commons-jci-fam/index.html
But this will require some glue code to be integrated into your application.

I guess if it's just one specific file it's reasonable to check it yourself.
But then the desire for more control and configuration creeps up and you start adding and tweaking... you know what I mean... :-P


HTH

Thanks very much,

-Hugh Sparks



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to