They are called when the appropriate event occurs. ServletContextListener reacts to changes in the
servlet context og the applciation (e.g. Servlet initialisation). ServletRequestListener reacts to requests. HttpSessionListener reacts to session creation/deletion events.