2.17.2: 2011-06-17

net.sf.basedb.clients.web.servlet
Class StartStopServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.sf.basedb.clients.web.servlet.StartStopServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class StartStopServlet
extends HttpServlet

Servlet for starting BASE when the web server is started and stopping BASE when the web server is stopped. This servlet is very simple. It will call 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.

Version:
2.8
Author:
nicklas
See Also:
Serialized Form
Last modified
$Date: 2008-09-11 22:05:50 +0200 (Thu, 11 Sep 2008) $

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
StartStopServlet()
           
 
Method Summary
 void destroy()
          Calls Application.stop().
 void init()
          Calls Application.start().
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

StartStopServlet

public StartStopServlet()
Method Detail

init

public void init()
          throws ServletException
Calls Application.start().

Overrides:
init in class GenericServlet
Throws:
ServletException

destroy

public void destroy()
Calls Application.stop().

Specified by:
destroy in interface Servlet
Overrides:
destroy in class GenericServlet

2.17.2: 2011-06-17