RE: Starting a Clean-up program

2003-01-29 Thread Scott Purcell
If you create that as a servlet, you can set the startup to 1 which will call it each time the webserver starts. Is that what you are looking for? servletname com.skp.someclass hello

RE: Starting a Clean-up program

2003-01-29 Thread Shapira, Yoav
Howdy, Implement a javax.servlet.ServletContextListener, and call that init method in the listener's contextInitialized() event. Don't forget to put the listener in your webapp's web.xml file. > public static void init(){ >Thread t = new Thread( new ClearUserHashMapClient() ); >t.start()