Using this template you can design a new ServletContextListener class.

Any listener interested in observing the servlet context lifecycle
should implement the ServletContextListener interface.