> On Jul 28, 2005, at 11:51 AM, David Geary wrote: > > I'll try to take a look next week to see what it'd take, but in the > > meantime if > > someone implements it out from under me, I won't feel bad. 8-) > > It looks like everything needed to load a DefinitionsFactory is > available in DefinitionsUtil. Right now it's only being called from > the TilesServlet init() method. > > The questions are: > 1) How to trigger a reload()? Via a request to the servlet or some > kind of API call, or a process that is "watching" the config files. > Could maybe work like JSP, when you ask for a definition, the factory > will look to see if it has changed. >
Ya, I kind of had the same question. I guess that we are free to fire up our own threads in the servlet container. Maybe a thread object could be placed in application scope that spins up and looks at the File? I've not implemented a servlet container. I suspect there are some folks listening that have... > 2) How to ensure the existing configuration can still be "used" while > the new one is being loaded? Is there any way to do this without > synchronization? > I would think that java synchronization would be the best verses a semaphore in application scope. > 3) Should the enable/disable feature be through a context parameter or > some other method? > How about an init parameter in the web deployment descriptor? > Greg > Gary > > --------------------------------------------------------------------- > 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]