For standard web app, I use a context listener servlet to do initialization
at startup. This also works in eclipse with GAE plugin, i.e. the context
listener is called only once at startup. But, it does not work in production
because the context listener servlet is called frequently. It seems GAE
Your app becomes shut down if it does not receive any requests for some
time. After that, the next request will initiate a new startup sequence, so
the implementation of the servlet spec is correct.
You should also implement ServletContextListener.contextDestroyed() to
perform cleanup of your
thanks,
On Wed, Feb 17, 2010 at 12:29 AM, Stephan Hartmann hartm...@metamesh.dewrote:
Your app becomes shut down if it does not receive any requests for some
time. After that, the next request will initiate a new startup sequence, so
the implementation of the servlet spec is correct.
You