Here is a snipped that
Context/__init__.py
from PronCheck.SpellingEngineServer import SES
# Need to shut down the SpellingEngineServer when the app closes
def contextInitialize(app, ctxPath):
app.addShutDownHandler( PronCheck.SpellingEngineServer.SES.stop)
See http://webware.sourceforge.net/Webware-0.7/WebKit/Docs/Source/Files/Application.py.html
and search for addShutDownHandler
-Aaron
Edmund Lian wrote:
I need to start one or more tasks (using TaskKit) when Webware starts, and also shut the tasks down in an orderly way when Webware is shutdown. The tasks need to be controlled from a servlet, so they need to be accessible from within Webware. Where's a good place to put the start up and shutdown code?...Edmund. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss