cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Dolg <>
Subject Re: [C3] Reloading the sitemap
Date Mon, 07 Jun 2010 11:27:39 GMT
Hugh Sparks schrieb:
> ----- Original Message ----- From: "Steven Dolg" <>
> To: <>
> 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
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

> Thanks very much,
> -Hugh Sparks
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message