[EMAIL PROTECTED] wrote:
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).

  Ian


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to