KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > servlet > ServletContextListener

javax.servlet
Interface ServletContextListener

All Superinterfaces:
EventListener
See Also:
Top Examples, Source Code, ServletContextEvent

public void contextDestroyed(ServletContextEvent sce)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[245]Application watch
By Anonymous on 2003/08/19 09:02:42  Rate
import javax.servlet.ServletContextListener; 
 import javax.servlet.ServletContextEvent; 
  
  
 public class ApplicationWatch implements ServletContextListener  {  
  
  
     public static long applicationInitialized = 0L; 
  
  
     /* Application Startup Event */ 
     public void contextInitialized ( ServletContextEvent ce )   {  
         applicationInitialized = System.currentTimeMillis (  ) ; 
      }  
  
  
     /* Application Shutdown Event */ 
     public void contextDestroyed ( ServletContextEvent ce )   {  }  
  } 


public void contextInitialized(ServletContextEvent sce)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags