Keep in mind that the reset service is little different than disabling the caches. Running it reloads all cached data for all pages and components. You definitely don't want this in a production application.
We've written some replacement infrastructure for Zillow that allows template change discovery and reload (sorry, templates only, no specifications) for only the templates that changed. Only the affected templates and page objects are flushed. We've run this multiple times under heavy load with only minor blips in page render times. Currently, we trigger this via JMX operation, but triggering via timer or other mechanism would be simple (and I'll probably add it before release). I'm hoping to share this code in the near future, once I've had a bit of time to put it in more sharable shape. It'll probably be Java 1.5 only, but I think it could be back-ported. jeff -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, February 23, 2006 5:09 AM To: 'Tapestry users' Subject: RE: how to auto discover and apply the change of .html, .page, .jwc? I find using the reset service to manually reload the page without reloading the whole app a reasonable compromise. You have to set -Dorg.apache.tapestry.enable-reset-service=true and then do http://localhost:8080/your/app?page=ReloadThis&service=reset (T4) > -----Original Message----- > From: Scott Russell [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 23, 2006 1:50 PM > To: [email protected] > Subject: Re: how to auto discover and apply the change of > .html, .page, > .jwc? > > > It would be really nice if > org.apache.tapestry.disable-caching=true cached the > templates, but started a background thread to monitor the > template files > every minute or so, and if their last-modified time changed, > then discard the > template and reload it. That would be a swete spot in > development as there > wouldn't be so many OOMEs coming up, and the pages wouldn't > be so slow to > load each time. > > -Scott > > > On Thu 23 February 2006 12:34, pickerel wrote: > > i develop a site use tapestr + spring +hibernate. but when > i do a little > > change to the .html or .page, i must restart the site, and > the progress is > > slow(spring+tapestry+hibernate), is there any way to auto load the > > change.do not suggest > "-Dorg.apache.tapestry.disable-caching=true", it's > > always outofmemory and cannot use in the online product. > > > > it's really painful :( . > > > > > > > --------------------------------------------------------------------- > > 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] > --------------------------------------------------------------------- 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]
