When gets the Application#close()-method called?

Hi,

when gets the Application#close()-method called? Are there any guarantees that it gets called at all (e. g. session-timeout)?

kind regards
Tobias

Application.close() is called if restartApplication or closeApplication is in the query string or when the servlet session is discarded (detected using HttpSessionBindingListener), which happens at least when the session is timed out or if HttpSession.invalidate() is called.

Thank you very much!