public class StartStopServlet extends HttpServlet
Application.start()
when it is loaded and
Application.stop()
when it is destroyed.
This servlet should be configured to load before any other servlet that use BASE classes.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
StartStopServlet() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Calls
Application.stop() . |
void |
init()
Calls
Application.start() . |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
private static final long serialVersionUID
public void init() throws ServletException
Application.start()
.init
in class GenericServlet
ServletException
public void destroy()
Application.stop()
.destroy
in interface Servlet
destroy
in class GenericServlet