From: Stefan Schwarzer <stefan.schwarzer@tu...> - 2002-10-01 14:40:54
In my context's __init__.py I want to initialize some things for the
application server to run (e. g. filling caches whose filling takes a
rather long time).
I also want to register a shutdown handler that (currently only) will
write something to a custom log file when the application server is
shut down. From within a servlet, I would grab the application object
and call its addShutDownHandler method, however, I see no such
possibility from within the mentioned initialization of the context.
A workaround would be to register the shutdown handler on calling the
first servlet for the first time, though that doesn't seem like a
clean solution to me. :-)