Will the servlets be reloaded automatically? What happens when you update a file that a servlet may depend on,
like modify a config file? will these be reloaded as well? If not is there a way to change the behavior of
the appserver back to the "restart method"? I have found that very helpful when we are developing a site
> -------- Original Message --------
> Subject: Re: [Webware-discuss] Couple little additions to CVS
> From: "deelan" <deelan@...>
> Date: Fri, May 28, 2004 12:19 am
> To: "Ian Bicking" <ianb@...>
> Cc: webware-discuss@...
> Ian Bicking wrote:
> > I've made a couple small additions to CVS. You can now write your
> > configuration files like Python modules, e.g.:
> > #AppServer.config
> > PrintConfigAtStartUp = True
> > Verbose = True
> > Host = '127.0.0.1'
> this is a welcome addition!
> > Lastly, AutoReload now isn't triggered by updating servlet files
> > can generally be safely reloaded).
> ah, so servlets changes won't make the appserver to restart
> but will be silently reloaded? great!
> thanks ian.
> PS: i've built my little own publishing system with
> webware, it now sleeps on http://www.netspyke.com/
> while i'm waiting to migrate deelan.com to apache.
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> Webware-discuss mailing list
From: Ian Bicking <ianb@co...> - 2004-05-28 21:26:22
> Will the servlets be reloaded automatically? What happens when you
> update a file that a servlet may depend on, like modify a config
> file? will these be reloaded as well? If not is there a way to
> change the behavior of the appserver back to the "restart method"? I
> have found that very helpful when we are developing a site
ServletFactory already reloads servlet modules when they are accessed
(if they have been updated). So your servlets should be reloaded
automatically. Changes to any other modules will cause a restart
(assuming you have AutoReload on). Changes to configuration files will
also cause a restart if you do modloader.watchFile(filename) -- as
before, you must explicitly add any non-Python files (though Webware's
own configuration files are automatically added).
For servlets I added something so that if mod.__donotreload__ is true,
then it won't restart the server when the file for that module is
changed. Then ServletFactory sets that module global when it loads a
servlet. (Hmm... maybe that attribute is poorly named, since it
actually means the kind of the opposite, it means that it *is* reloaded
automatically, so restart isn't necessary).