Ayaz 10/11/2016 0

Load servlet at startup in Java

package com.ack.web.servlet;

import javax.servlet.http.HttpServlet;


 This servlet has a load-at-startup priority of 7, meaning any servlet
 with a load priority lower than 7 will be loaded before this one, and those
 greater than 7 after.  if a load-at-startup priority is not specified,
 for example <load-on-startup/>, the servlet engine chooses when
public class LoadServletAtStartup extends HttpServlet {

  public void init() {
    System.out.println( getServletName()   ": initialised" );


Report Bug

Please Login to Report Bug

Reported Bugs


Please Login to Comment