StartServlet.class
/*This servlet is called automaticly when the servlet enngine is first started to prepare the application before any requests are received */ package com; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; import com.ConnectionPool2; public class StartServlet extends HttpServlet { private static final String CONTENT_TYPE = "text/html"; //Method Init is called when the servlet is first instantiated // that is when the servlet engine is first started to prepare the // application by creating connections for the connectionPool // and creating an instance of class ApplicationVaribles which // sets the InlandRevenue variables in the appication. public void init() throws ServletException { System.out.println("Payroll application varibles loaded"); ConnectionPool2.start(); System.out.println("got here"); ApplicationVaribles applicationVaribles = new ApplicationVaribles(); System.out.println("got here 2"); } }